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

Choose language from a language picker #18

Merged
merged 4 commits into from
Apr 21, 2024
Merged

Choose language from a language picker #18

merged 4 commits into from
Apr 21, 2024

Conversation

dgmstuart
Copy link
Owner

No description provided.

Need to ass some options:

supportedLngs

This is needed to allow i18next to pick the best match out of
all the browser's supported languages list (navigator.languages).
Otherwise only the first language in the browwer's list is used,
regardless of whether it matches any supported languages or if there are
any.

Export this to try and make sure that the picker and the i18n config
stay in sync.

nonExplicitSupportedLngs

This is needed to eg. allow fr-BE to be treated as fr. Seems like it's
disabled by default because it doesn't play nice with loading
translations from external sources.
Maybe over-engineered?
The buttons didn't fit in French
@dgmstuart dgmstuart merged commit bc12826 into main Apr 21, 2024
3 checks passed
@dgmstuart dgmstuart deleted the i18n branch April 21, 2024 03:06
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.

1 participant