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

Wrong language name for zh_TW (Taiwanese) #1117

Open
SirRob1997 opened this issue Aug 9, 2024 · 0 comments
Open

Wrong language name for zh_TW (Taiwanese) #1117

SirRob1997 opened this issue Aug 9, 2024 · 0 comments

Comments

@SirRob1997
Copy link

SirRob1997 commented Aug 9, 2024

The language name for Taiwanese (zh_TW) seems to be wrongly given as Chinese and also the regular locale creation doesnt work as expected:

>>> Locale('zh_TW').get_language_name('en_US')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/envs/poetry/lib/python3.9/site-packages/babel/core.py", line 204, in __init__
    raise UnknownLocaleError(identifier)
babel.core.UnknownLocaleError: unknown locale 'zh_TW'
>>> Locale.parse('zh_TW')
Locale('zh', territory='TW', script='Hant')
>>> Locale.parse('zh_TW').get_language_name('en_US')
Chinese

As regular "Chinese" I'd classify simplified Han script (Mandarin) while Taiwanese uses traditional Han script.

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

No branches or pull requests

1 participant