Open kishorejethava opened 9 months ago
Description: After setting locale 'mr' (Marathi language), the dates are showing in Marathi, this same issue happening in Bengali too for locale 'bn'.
Expected behavior: The dates should come in English only not in based on current locale.
Source code: Add below code in onCreate of MainActivity and Run the app link: https://github.com/material-components/material-components-android/blob/master/catalog/java/io/material/catalog/main/MainActivity.java#L49
Locale myLocale = new Locale("mr"); // for bengali set 'bn' Resources res = getResources(); DisplayMetrics dm = res.getDisplayMetrics(); Configuration conf = res.getConfiguration(); conf.locale = myLocale; res.updateConfiguration(conf, dm); onConfigurationChanged(conf);
Android API version: API 34
Material Library version: 1.9.0
Device: Emulator Pixel 2 API 33
Here is the proof of issue:
Hello @leticiarossi, When we can expect this fix release.
Description: After setting locale 'mr' (Marathi language), the dates are showing in Marathi, this same issue happening in Bengali too for locale 'bn'.
Expected behavior: The dates should come in English only not in based on current locale.
Source code: Add below code in onCreate of MainActivity and Run the app link: https://github.com/material-components/material-components-android/blob/master/catalog/java/io/material/catalog/main/MainActivity.java#L49
Android API version: API 34
Material Library version: 1.9.0
Device: Emulator Pixel 2 API 33
Here is the proof of issue: