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

Improve loading screen translation loading #894

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

dbnicholson
Copy link
Member

Fallback to regionless locale matching and make our existing translation IDs regionless. This makes it much more likely that a Spanish translation will be used without depending on the browser to setup navigator.languages exactly as we expect. I tested this in Chrome overriding navigator.languages to ['es-MX'] and it DTRT.

Fixes: #893

If we don't have a translation matching any regional locale in
`navigator.languages`, try again with only the locale's language. This
will allow better fallbacks when the browser doesn't build
`navigator.languages` as a fallback list itself like `['es-GT',
'es-419', 'es']`.
This allows matching a much wider set of locales without depending on
the browser to build `navigator.languages` as we expect it. Furthermore,
we're not actually providing regional translation variation and probably
never will.

Fixes: #893
@manuq manuq merged commit 1013eb6 into master Oct 23, 2023
3 checks passed
@manuq manuq deleted the 893-loading-screen-tx-loading branch October 23, 2023 11:14
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.

Improve loadingScreen Spanish translation
2 participants