开发者

the language code for localization in iOS

开发者 https://www.devze.com 2023-04-12 07:21 出处:网络
According to apple\'s guide, the language code can be found开发者_JAVA百科 in IOS639.However, I tried some codes and failed.

According to apple's guide, the language code can be found开发者_JAVA百科 in IOS639.However, I tried some codes and failed.

In the code list only chinese exists, but the chinese in China mainland is different in HongHong and so on. I'm confused about it!

Could anyone show me the correct language code list? thanks


Apple's CFLocales documentation (under "Locale Naming Conventions") indicates that they'll accept ISO 639-1 or ISO 639-2. Their ISO 3166-1 link is broken, but Wikipedia lists the region codes. Apple actually addresses the distinction for Hong Kong specifically in its language ID section:

However, traditional Chinese is also commonly spoken in Hong Kong and Macao, which means the zh_TW designator is not entirely accurate in those locations. The new standard defines new tags for the traditional Chinese (Hant) and simplified Chinese (Hans) scripts. Thus, traditional Chinese spoken in any country uses the code zh-Hant.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号