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

Android : app has to be restarted to notice the change of system language #20

Closed
nibo opened this issue Nov 25, 2019 · 2 comments
Closed

Comments

@nibo
Copy link

nibo commented Nov 25, 2019

I have to restart the android app to notice the system language change. On ios the app will be automatically rebuild.

Any ideas to solve this?

@bratan
Copy link
Member

bratan commented Nov 26, 2019

@nibo - Basically the system locale is only retrieved/used during the application initialization.

Changes to the system locale while the application is running are not currently detected on Android.

On iOS, as you mentioned, the app is rebuilt so the new locale is picked up during initialization.

I`m going to implement this behavior for Android as well, in the near future.

Until then, you could use the ACTION_LOCALE_CHANGED intent to detect the locale change and select the new locale if supported.

@bratan
Copy link
Member

bratan commented Nov 27, 2019

Moved to #21

@bratan bratan closed this as completed Nov 27, 2019
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

No branches or pull requests

2 participants