react-native-localize icon indicating copy to clipboard operation
react-native-localize copied to clipboard

Add support for "app languages" on Android

Open abejfehr opened this issue 1 year ago • 5 comments

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 avatar Feb 01 '24 15:02 abejfehr

@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.

zoontek avatar Feb 01 '24 15:02 zoontek