scorpiozj
scorpiozj

Reputation: 2687

the language code for localization in iOS

According to apple's guide, the language code can be found 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

Upvotes: 1

Views: 6304

Answers (1)

bdunagan
bdunagan

Reputation: 1212

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.

Upvotes: 1

Related Questions