Questions tagged [android-locale]
6 questions
6
votes
0 answers
Is there a way to get the language list from locales_config.xml programmatically?
I'm very confused about this new language stuff on Android 13.
I have a locales_config.xml file and that works fine but the documentation makes it sound like I can use LocaleListCompat in order to let users with Android 12 or older select the…

casolorz
- 8,486
- 19
- 93
- 200
4
votes
2 answers
How to identify device language from the App language in Android 13?
I added support per app language to my app, the android 13 feature, now it is both English and Russian. I can change the app language from settings and no need to change the device language. Now for analytics purposes, I need to know the app…

Sergey
- 41
- 1
2
votes
0 answers
Android localization any region doesn't work for some languages and uses English instead
I though adding just zh folder with translations will be used for all regions but it seems if the device language is set to Mandarin Chinese (zh-rTW) then it will use English. I have to create zh-rTW folder as well and add the translations there as…

user924
- 8,146
- 7
- 57
- 139
1
vote
1 answer
Android instrumented tests - Recreated Activity not picking up locale change, API <33
At least, it's not doing what I'd expect. Here's my situation --
I'm writing a feature to allow that allows users to make locale changes at runtime. Without any special handling, a locale change will automatically recreate Activities and use the…

aormsby
- 126
- 5
1
vote
0 answers
only few localisation strings not working on few android devices
I am facing a weird issue where there are only few strings appearing in english when the locale is set to hungary. This is happening on very few devices of various OS versions.
Here are few devices I've tried on:
One Plus 8 running Android 12 (works…

chutwik
- 51
- 2
0
votes
0 answers
Can we get current country of device dynamically from locale.?
I am developing wearable applications (for smartwatches), and want to access the device's current country to show distance unit(km/mile) based on locale..
I am able to get the device country from Locale.getDefault().country but once I update the…

SaurabhG
- 173
- 1
- 11