Locale code for Hebrew / Reference to other locale codes?

前端 未结 2 1494
南方客
南方客 2020-12-20 12:26

What\'s the locale code for Hebrew in Android resources, like strings (values-XX)? And where to find other codes?

Thanks in advance.

相关标签:
2条回答
  • 2020-12-20 13:09

    I think that in practice, this is not the case. From the localization guide: "Note that Java uses several deprecated two-letter codes. The Hebrew ("he") language code is rewritten as "iw"..."

    0 讨论(0)
  • 2020-12-20 13:30

    The language is defined by a two-letter ISO 639-1 language code, optionally followed by a two letter ISO 3166-1-alpha-2 region code (preceded by lowercase "r").

    from Providing Resources

    According to the linked table, he is the qualifier for hebrew.

    Note: Some devices use iw instead, as Error 545 noted in the comments, so you better check for both cases. See this question for more information.

    0 讨论(0)
提交回复
热议问题