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

Add support for "app languages" on Android #245

Open
abejfehr opened this issue Feb 1, 2024 · 1 comment
Open

Add support for "app languages" on Android #245

abejfehr opened this issue Feb 1, 2024 · 1 comment
Assignees
Labels
feature request New feature or request

Comments

@abejfehr
Copy link

abejfehr commented Feb 1, 2024

Why it is needed?

It's nice to be able to choose a language on a per-app basis instead of setting the whole OS, and it looks like that's possible now on Android: https://developer.android.com/guide/topics/resources/app-languages

Possible implementation

No response

Code sample

No response

@abejfehr abejfehr added the feature request New feature or request label Feb 1, 2024
@zoontek
Copy link
Owner

zoontek commented Feb 1, 2024

@abejfehr It's already supported. Android now allow the user to overrides the app language in app settings and it updates what's returned by existing react-native-localize functions.

EDIT: Hmmm, I forget Android API are often stupidly designed. Will investigate on extras setApplicationLocales() and getApplicationLocales(). But if this allow overriding from the app directly, this is a terrible feature for user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants