Locale codes for iPhone lproj folders

后端 未结 4 1284
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 01:34

Where would I find a list of locale name abbreviations for my project localization folders? (Such as en for English, fr for French).

I am looki

4条回答
  •  余生分开走
    2021-01-30 02:30

    This question has been answered but I think made more confusing by the multiple sources. The fact is that iOS has 30 languages that it will recognize as .lproj folders. It won't accept any regional codes, so telling it fr-CA won't get you French Canadian, but rather will simply use your English strings. You need to use the two-letter code for the language (en.lproj, fr.lproj, es.lproj, de.lproj, and so on). The only exception to this rule is Chinese, which should be zh_Hans for Simplified Chinese and zh_Hant for Traditional Chinese.

    What makes this even more confusing is that the iTunes App Store has a different set of languages that it understands, and it does recognize many regional versions like Australian English and Brazilian Portuguese.

    There is a complete (and updated) list of the current supported languages and language codes for both iOS and iTunes here:

    http://www.ibabbleon.com/iOS-Language-Codes-ISO-639.html

提交回复
热议问题