Locale code for Hebrew / Reference to other locale

2019-02-21 15:16发布

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

Thanks in advance.

2条回答
三岁会撩人
2楼-- · 2019-02-21 15:29

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"..."

查看更多
混吃等死
3楼-- · 2019-02-21 15:49

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.

查看更多
登录 后发表回答