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 works with "fr" but not "fr-FR" #1472

Open
Heshyo opened this issue Mar 29, 2024 · 0 comments
Open

setLang works with "fr" but not "fr-FR" #1472

Heshyo opened this issue Mar 29, 2024 · 0 comments

Comments

@Heshyo
Copy link

Heshyo commented Mar 29, 2024

I use navigator.language which can return values likes "en", "en-US", "fr", "fr-FR", "es-ES", etc.

It seems calling setLang using the 2 letter value like "fr" works, but not the 5 letter value like "fr-FR". There should be a fallback from "fr-FR" to "fr", "es-ES" to "es", ...Basically just keeping the 1st 2 letters should fix it.

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