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

Project language locales are rather out of date #11387

Open
3 tasks
agjohnson opened this issue Jun 6, 2024 · 2 comments
Open
3 tasks

Project language locales are rather out of date #11387

agjohnson opened this issue Jun 6, 2024 · 2 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@agjohnson
Copy link
Contributor

agjohnson commented Jun 6, 2024

Discussed in:

Sphinx uses the standard locales zh_CN and zh_TW, where instead we provide only the translation locale option of zh.

We need:

@agjohnson
Copy link
Contributor Author

agjohnson commented Oct 17, 2024

Comparing the list of our project locales with the current list of locales in Django, we have a lot of old and outdated locales.

Here are the locales that we support that are no longer supported in Django (some locales no longer exist even):

> locale_project - locale_django
{'aa',
 'ab',
 'acr',
 'agu',
 'am',
 'as',
 'ay',
 'ba',
 'bh',
 'bi',
 'bo',
 'caa',
 'cab',
 'cac',
 'cak',
 'co',
 'dz',
 'fj',
 'fo',
 'gn',
 'gu',
 'ha',
 'ie',
 'ik',
 'itz',
 'iu',
 'ixl',
 'jac',
 'jv',
 'kek',
 'kjb',
 'kl',
 'knj',
 'ks',
 'ku',
 'la',
 'ln',
 'lo',
 'mam',
 'mg',
 'mi',
 'mop',
 'mt',
 'na',
 'nb-no',
 'oc',
 'om',
 'or',
 'pnb',
 'poc',
 'poh',
 'ps',
 'qu',
 'quc',
 'qum',
 'quv',
 'rm',
 'rn',
 'rw',
 'sa',
 'sd',
 'sg',
 'si',
 'skr',
 'sm',
 'sn',
 'so',
 'ss',
 'st',
 'su',
 'ti',
 'tl',
 'tn',
 'to',
 'ts',
 'ttc',
 'tw',
 'tzj',
 'ug',
 'uk-ua',
 'usp',
 'vo',
 'wo',
 'xh',
 'xin',
 'yi',
 'yo',
 'za',
 'zu'}

And the locales that Django supports that we should support now:

> locale_django - locale_project
{'ar-dz',
 'ast',
 'bs',
 'ckb',
 'dsb',
 'en-au',
 'en-gb',
 'es-ar',
 'es-co',
 'es-ni',
 'es-ve',
 'hsb',
 'ig',
 'io',
 'kab',
 'lb',
 'nb',
 'nn',
 'os',
 'sr-latn',
 'udm',
 'zh-hans',
 'zh-hant',
 'zh-hk',
 'zh-mo',
 'zh-my',
 'zh-sg'}

I pointed out above that Django has a concept of locale fallback that we aren't using either.

@agjohnson agjohnson changed the title Project language locale zh is no longer valid Project language locales are rather out of date Oct 17, 2024
@ericholscher
Copy link
Member

The fallback here to defaulting to the language code is now live, and the pages at least aren't 500ing anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
Status: Planned
Development

No branches or pull requests

2 participants