Manage Locale in Android Jetpack Compose

Viewed 629

How do I manage the locale with android Jetpack Compose. How do compose find the locale to set in the view.

2 Answers

If you actually want to get the default Locale of the device you can use

Locale.getDefault()

But it does not really have to do anything with Jetpack Compose so I am not sure if I have got your question right.

To access the Locale from a Composable, use this:

Locale.current
Related