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

It does not work for all languages #48

Open
MrMaxxan opened this issue Oct 16, 2021 · 1 comment
Open

It does not work for all languages #48

MrMaxxan opened this issue Oct 16, 2021 · 1 comment

Comments

@MrMaxxan
Copy link

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
Copy link

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

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