How could I get the current language of the device in Xamarin (for Android)?
Got the language with context.Resources.Configuration.Locale.Language
Here's a cross platform version I use. Obviously you can pull whatever property you need from CurrentUICulture
.
return CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
Maybe it will help someone else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With