GetLanguageID() returns no valid culture

Welcome! Forums Unity Plugins Precise Locale GetLanguageID() returns no valid culture

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1945
    NickLeupold
    Participant

    I use GetLanguageID() to get set the culture in my app.

    culture = PreciseLocale.GetLanguageID().Replace("_", "-");
    Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.GetCultureInfo(culture);

    But GetLanguageID() returns to me “en_DE” when the Region is DE and the language of the Android Device is english.

    “en_DE” is not a valid culture how come?

    Did I understand the meaning of “GetLanguageID()” wrong?

    #1948
    PiotrPiotr
    Keymaster

    Please refer to docs.

    Language ID on Android is simple combination of language and region.

    #2070
    Stanleyenuro
    Participant

    It is a valuable phrase

    #2088
    PiotrPiotr
    Keymaster

    Don’t get your question.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.