Locale codes for iPhone lproj folders

后端 未结 4 1312
伪装坚强ぢ
伪装坚强ぢ 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:23

    Shortly, you should use two letters codes for most cases, as specified by BCP 47 codes.

    Longer, as specified by official Apple documentation you are supposed to use BCP 47 codes.

    Now the rule of thumb is to use the shortest code possible that makes sense. You should use this because this maximizes the coverage for similar locales.

    For example, if you localize in Russian, you should use only ru code, instead of alternatives like ru-RU. This is important because if you use the short code, the users from other countries that are speaking Russian will see your application in Russian. Otherwise you will display Russian only for people using Russian language from Russia.

    If you want to know more information about language codes including recommended codes for most used languages, you should to read a short article I wrote more than a year ago http://blog.i18n.ro/simplified-locale-codes/ - Remember that there are some tricks regarding Portuguese and Chinese but for other languages you can use the list below.

    Arabic (ar), Czech (cs), Danish (da), German (de), Greek (el), Finnish (fi), Hebrew (he), Hungarian (hu), Italian (it), Japanese (ja), Korean (ko), Norwegian (nb), Dutch (nl), Polish (pl), Romanian (ro), Russian (ru), Swedish (sv), Turkish (tr), Ukrainian (uk).

提交回复
热议问题