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