In xamarin, how to get the current language of the device for Android?

JVnalJVnal Juvénal LUFUMAUSMember ✭✭

How could I get the current language of the device in Xamarin (for Andriod)?

Thanks

Posts

  • nickNaylornickNaylor Jens-Uwe Rumstich DEMember ✭✭
    edited September 2014

    you get this information in Java.Util.Locale.Default.

    this is a java object where you can get this information about language and country in several different ways (e.g. iso3 Language)

  • JVnalJVnal Juvénal LUFUMA USMember ✭✭

    Thanks, it's done with

    Locale.Default.GetDisplayLanguage(Locale.Default)

    :)

Sign In or Register to comment.