ascii
10/12/2023, 5:08 AMascii
10/12/2023, 5:08 AM@Preview("Default") // locale defaults to ""
@Preview("RTL", locale = "ar") // Arabic for RTL
@Composable
fun Something() {
Text(stringResource(R.string.loading))
}
gives us that:ascii
10/12/2023, 5:08 AMascii
10/12/2023, 5:11 AMlocale = "en"
makes it go away, but I don't see why it should, when we can clearly see that strings are already correctly localized. Just that layout direction is picked up from "ar" (or perhaps the last @Preview annotation).ascii
10/12/2023, 5:14 AMascii
10/12/2023, 5:18 AMar
, but layout direction from ""
(default).ascii
10/12/2023, 5:20 AMIan Lake
10/12/2023, 5:52 AMascii
10/12/2023, 6:23 AM