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

setLang has invalid assumptions #1551

Open
razor-1 opened this issue Dec 31, 2024 · 0 comments
Open

setLang has invalid assumptions #1551

razor-1 opened this issue Dec 31, 2024 · 0 comments

Comments

@razor-1
Copy link

razor-1 commented Dec 31, 2024

Hi, setLang assumes that language codes are always 2 characters (either alone or in a format along with a separator and region).

My applications are localized into many different languages, some of which are not contained in ISO 639-1 and are only found in ISO 639-3 (i.e. they have 3-letter codes). An interesting one came up today when someone using Jamaican Creole (jam) was shown text in Japanese (ja).

I'm not asking for translations into these less common languages, just that setLang won't make the wrong decisions based on the assumption that the only codes in use are 2 letters.

Thank you

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