-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Per-app languages don't work in release builds #408
Comments
Thanks for flagging this issue @DimitarStoyanoff! I can replicate. This look to be an issue with split apks. As a workaround you might disable language splits, see Handling language changes. The below works as a workaround:
Another option may be to use the Play Core library to download languages on demand, see Download additional language resources or this blog post. I've not yet tested this. The last option is to use More info: I'm connecting with the team internally on this and will circle back, but hopefully the above workarounds unblock you in the meantime. |
Reproduction steps:
Expected result:
Text language changes upon selection.
Actual result:
App stays in the default language, state change is not triggered. Killing the app and restarting it doesn't change the app strings language. The
compose_app
example even gets an ANR.On SDK 33 in device settings the correct language is set for the app. AppLocalesStorageHelper logs show the selected locale was persisted correctly, but the app does not reflect those changes.
Tested on Pixel 6 emulators with SDK 31 and 33, as well as on physical OnePlus Nord.
Tested with AGP versions 7.2.2, 7.3.1 and 8.0.0-alpha09.
The text was updated successfully, but these errors were encountered: