我在哪里可以找到语言 + 地区代码的列表?

人气:946 发布:2022-10-16 标签: internationalization unicode iso region

问题描述

我已经用谷歌搜索(好吧,实际上是 DuckDuckGo'ed),直到我脸色发青,但找不到 en-GBfr 类型的语言代码列表-CA 任何地方.

I have googled (well, DuckDuckGo'ed, actually) till I'm blue in the face, but cannot find a list of language codes of the type en-GB or fr-CA anywhere.

有关于组件的优秀资源,特别是 W3C I18n 页面,但是我希望有一个简单的按字母顺序排列的列表,如果可能的话,相当规范(类似于 这个).找不到.

There are excellent resources about the components, in particular the W3C I18n page, but I was hoping for a simple alphabetical listing, fairly canonical if possible (something like this one). Cannot find.

谁能指出我正确的方向?非常感谢!

Can anyone point me in the right direction? Many thanks!

推荐答案

这可以在 Unicode 的通用语言环境数据存储库中找到.具体来说,一个 JSON 文件 可以在他们的 cldr-json repo

This can be found at Unicode's Common Locale Data Repository. Specifically, a JSON file of this information is available in their cldr-json repo

896