compose-multiplatform
compose-multiplatform copied to clipboard
overridable resource locale
Add a way to override local for the resources (partially address #4197).
Similar to how we override the density with the LocalDensity composition provider it adds LocalResourceLocale to override Locale for Resource.
Usage
CompositionLocalProvider(LocalResourceLocale provides Locale("np")) {
Text(stringResource(Res.string.hello))
}