YarikSOffice / lingver

Manage your application locale and language.
https://proandroiddev.com/change-language-programmatically-at-runtime-on-android-5e6bc15c758
MIT License
508 stars 62 forks source link

It does not work for all languages #48

Open MrMaxxan opened 2 years ago

MrMaxxan commented 2 years ago

I have notice that this library does not change the locale for all languages, for example Tagalog (iso code tl or tl-rPH in Android Studio) doesn't work.

Attached an example project to demonstrate the issue. LocaleTest.zip

AlexeyGodyaev commented 1 year ago

val configuration = Configuration(context.resources.configuration) configuration.setLocale(locale) val strLocale context.createConfigurationContext(configuration).resources.getString(resId)