Saturday, 15 April 2023

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

However I haven't found any way to query all the languages listed on locales_config.xml other than parsing the XMl but that just doesn't feel right, plus the names of the languages wouldn't be translated.

So how should I go about giving users a choice of languages from locales_config.xml?



from Is there a way to get the language list from locales_config.xml programmatically?

No comments:

Post a Comment