I'm using the Material3 DatePicker in Jetpack Compose and I want the calendar to always display in English, regardless of the device language.
I tried several approaches, but none of them worked:
Setting locale in DatePickerState: val state = remember { DatePickerState(locale = Locale.ENGLISH) } DatePicker(state = state)
Wrapping the DatePicker in CompositionLocalProvider with LocalConfiguration or LocalContext
Changing global locale
But the issue is still there — month/day names still appear in the phone's language. I want a Compose Material3 DatePicker that always shows month/day names in English, independent of the system locale, ideally without globally changing Locale.getDefault().
Any solutions or workarounds for this issue?