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

Per-app language preferences not working properly in Compose Multiplatform below Android 12 #468

Open
pankaj1920 opened this issue May 28, 2024 · 0 comments

Comments

@pankaj1920
Copy link

this is the actual function i created to change app language

actual fun changeAppLanguage(language: String) {
AppCompatDelegate.setApplicationLocales(
LocaleListCompat.forLanguageTags(language)
)
}

For android 14 it is working fine in compose multiplatform if i change app language from inside app its working and if i close the app and reopen then also previous set language is coming.

But for android 12 and below it i click on language change btn then app language is not changing. i have to go some other screen and come back to reflect the language change. and if i close app and reopen then delfault language is setting previous selected language is not setting

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
@pankaj1920 and others