中文具体是什么语言,语言代码'zh'?

What language specifically is Chinese, language code 'zh'?

我知道有简体中文(zh-Hans)和繁体中文(zh-Hant)。

但是 Xcode 允许本地化为中文 (zh)。

从localization fallback的概念我了解到是简体中文和繁体中文的fallback。因此,从技术上讲,它可以用于承载在简体中文和繁体中文中相同的常见中文本地化字符串。

Xcode 语言环境 zh 有什么用? zh应该是简体中文还是繁体中文?

Should zh be Simplified or Traditional Chinese?

根据 W3C(和 IANA subtag registry),zh 是 "macrolanguage"。因此它 没有默认的书写系统 并且应该使用更具体的变体。但是,它给出了一个常见用法的示例,如下所示:

When zh is used on its own, it is usually used to mean the predominant language in the encompassed range, although this is not explicitly specified in BCP 47. For example, conventionally zh is considered to represent the predominant, Mandarin form of Chinese.

来源:https://www.w3.org/International/articles/language-tags/

zh 似乎在遗留应用程序中用于表示普通话。虽然语言标签 cmn 也没有默认的书写系统,所以仍然没有回答应该用哪个脚本编写的问题。

我注意到我的 iPhone (iOS 11) 允许我将系统语言设置为 zh-Hans、zh-Hant 和 zh-Hant-HK,但没有普通话选项.


免责声明:我既不是 iOS 开发人员,也不懂中文。我只是一个语言标签书呆子