Ivan Å iser
val appLocale: LocaleListCompat = LocaleListCompat.forLanguageTags("en") AppCompatDelegate.setApplicationLocales(appLocale)
android:configChanges="locale|layoutDirection"
LocalConfiguration.current.locales[0]
Stylianos Gakis
@Composable @ReadOnlyComposable fun getLocale(): Locale { val configuration = LocalConfiguration.current return ConfigurationCompat.getLocales(configuration).get(0) ?: LocaleListCompat.getAdjustedDefault()[0]!! }
Alex Vanyo
A modern programming language that makes developers happier.