Is there a simple way to set the language / locale...
# compose
a
Is there a simple way to set the language / locale in an Android Compose Test?
stringResource
always seems to pick the english strings for me.
a
In
1.7
, there is a new
DeviceConfigurationOverride.Locales
testing utility that allows specifying the locale for the content under test: https://developer.android.com/reference/kotlin/androidx/compose/ui/test/DeviceConfigurationOverride.Companion#(androidx.compose[…]t.intl.LocaleList)