You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are in the app, go to settings and change the locale to another one that is supported the UI is not automatically recomposed so none of the strings will change to the new locale
The text was updated successfully, but these errors were encountered:
Not sure this is something that can currently be fixed with lyricist as it seems compose does not expose a Locale State. Here is how I am looking to work around it on Android:
class MainActivity : ComponentActivity() {
private val locale = mutableStateOf(Locale.current)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
App(locale.value)
}
}
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
locale.value = Locale.current
}
}
If you are in the app, go to settings and change the locale to another one that is supported the UI is not automatically recomposed so none of the strings will change to the new locale
The text was updated successfully, but these errors were encountered: