Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Overriding device locale for time and datepickers

$
0
0

Our app is available in 4 languages. Our app will use the device's language, unless it's not one of the 4 options, where we resort to using English. Our users can also override the device setting by selecting a language inside the app. Everything works fine except for the DatePicker and TimePicker. We set the locale with the following code:

Resx.AppResources.Culture = ci; // set the RESX for resource localization
DependencyService.Get<ILocalize>().SetLocale(ci); // set the Thread for locale-aware methods

The app still uses the device's set language for only the pickers. EX: Device locale English, app locale Spanish, DatePicker shows months in English.

Is there any way to override this?

Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>