Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getRegions script and update the regions #5450

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Jul 23, 2024

Fix getRegions script and update the regions

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Chore

Description

I fixed the getRegions.mjs script no longer working and then ran it.

New regions:

  • Moldova (MD)

New languages:

  • Farsi/Persian (fa)
  • Hebrew (he, was already available on YouTube, but we didn't have the mapping from iw to he)
  • pt_BR -> new mapping to pt
  • es_AR -> new maping to es-419
  • es-MX -> new mapping to es-419
Script output
> yarn get-regions
yarn run v1.22.22
$ node _scripts/getRegions.mjs
Active FreeTube languages that aren't available on YouTube:
[]
YouTube languages that don't have an equivalent active FreeTube language:
[
  'af',      'am',  'as',    'az',
  'be',      'bn',  'bs',    'en-IN',
  'es-US',   'fil', 'fr-CA', 'gu',
  'hi',      'hy',  'ka',    'kk',
  'km',      'kn',  'ky',    'lo',
  'lv',      'mk',  'ml',    'mn',
  'mr',      'ms',  'my',    'ne',
  'or',      'pa',  'si',    'sq',
  'sr-Latn', 'sw',  'ta',    'te',
  'th',      'ur',  'uz',    'zh-HK',
  'zu'
]

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.21.0

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 23, 2024 14:07
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 23, 2024
@ChunkyProgrammer
Copy link
Member

We should eventually map es-MX and es-AR to es-419 and pt-BR to pt

@absidue
Copy link
Member Author

absidue commented Jul 23, 2024

Added the mappings.

@FreeTubeBot FreeTubeBot merged commit cc61f5a into FreeTubeApp:development Jul 24, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 24, 2024
@absidue absidue deleted the update-regions branch July 24, 2024 08:20
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Jul 25, 2024
* development:
  Bump version number to v0.21.2
  Update YouTube.js to 10.2.0 (FreeTubeApp#5465)
  Update icon for channels button on side nav (FreeTubeApp#5273)
  Translated using Weblate (Azerbaijani)
  Fix getRegions script and update the regions (FreeTubeApp#5450)
  More flexible hardware acceleration for Linux (FreeTubeApp#5438)
  Bump the eslint group with 3 updates (FreeTubeApp#5441)
  Bump lefthook from 1.7.2 to 1.7.5 (FreeTubeApp#5445)
  Bump the fortawesome group with 4 updates (FreeTubeApp#5442)
  Bump swiper from 11.1.4 to 11.1.5 (FreeTubeApp#5443)
  Bump electron from 31.2.0 to 31.2.1 (FreeTubeApp#5444)
  Fix scss deprecation warnings (FreeTubeApp#5429)
  Bump the stylelint group with 2 updates (FreeTubeApp#5411)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants