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

Fallback to same language, but different dialect #255

Open
cmspray opened this issue Aug 13, 2024 · 0 comments
Open

Fallback to same language, but different dialect #255

cmspray opened this issue Aug 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cmspray
Copy link

cmspray commented Aug 13, 2024

Is your feature request related to a problem? Please describe.
Sometimes we have languages translated, like fr_FR, however, the user has the preferred language as fr_CA. In this case, English is returned as that's the only packaged resources with the app.

Describe the solution you'd like
Add a config that enables strings to fetch any "sister" dialects that are translated. The way Android does it now is first it searches for preferred locale, if none are present, look for just the language code, and if that's not present, look for "children" of the language code for translations.

Describe alternatives you've considered
Packaging the translated strings.xml files with our app, but this increases our apk size, and also, removes the ability for us to translate in real time.

@cmspray cmspray added the enhancement New feature or request label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant