Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ChenYFan_OHHH
uni-app
提交
5b322033
U
uni-app
项目概览
ChenYFan_OHHH
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5b322033
编写于
9月 13, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(i18n): add locale list
上级
31c7735b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
707 addition
and
0 deletion
+707
-0
packages/uni-i18n/locale/json/locale.json
packages/uni-i18n/locale/json/locale.json
+204
-0
packages/uni-i18n/locale/json/locale.nls.json
packages/uni-i18n/locale/json/locale.nls.json
+204
-0
packages/uni-i18n/locale/json/locale.nls.zh_CN.json
packages/uni-i18n/locale/json/locale.nls.zh_CN.json
+204
-0
packages/uni-i18n/locale/locale.en.js
packages/uni-i18n/locale/locale.en.js
+48
-0
packages/uni-i18n/locale/locale.zh.js
packages/uni-i18n/locale/locale.zh.js
+47
-0
未找到文件。
packages/uni-i18n/locale/json/locale.json
0 → 100644
浏览文件 @
5b322033
{
"aa"
:
"%aa%"
,
"ab"
:
"%ab%"
,
"ae"
:
"%ae%"
,
"af"
:
"%af%"
,
"ak"
:
"%ak%"
,
"am"
:
"%am%"
,
"an"
:
"%an%"
,
"ar"
:
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HK%"
,
"zh-Hant-MO"
:
"%zh-Hant-MO%"
,
"zh-Hant-TW"
:
"%zh-Hant-TW%"
,
"zu"
:
"%zu%"
}
packages/uni-i18n/locale/json/locale.nls.json
0 → 100644
浏览文件 @
5b322033
{
"aa"
:
"Afar"
,
"ab"
:
"Abkhazian"
,
"ae"
:
"Avestan"
,
"af"
:
"Afrikaans"
,
"ak"
:
"Akan"
,
"am"
:
"Amharic"
,
"an"
:
"Aragonese"
,
"ar"
:
"Arabic"
,
"as"
:
"Assamese"
,
"av"
:
"Avaric"
,
"ay"
:
"Aymara"
,
"az"
:
"Azerbaijani"
,
"ba"
:
"Bashkir"
,
"be"
:
"Belarusian"
,
"bg"
:
"Bulgarian"
,
"bh"
:
"Bihari"
,
"bi"
:
"Bislama"
,
"bm"
:
"Bambara"
,
"bn"
:
"Bengali"
,
"bo"
:
"Tibetan"
,
"br"
:
"Breton"
,
"bs"
:
"Bosnian"
,
"ca"
:
"Catalan, Valencian"
,
"ce"
:
"Chechen"
,
"ch"
:
"Chamorro"
,
"co"
:
"Corsican"
,
"cr"
:
"Cree"
,
"cs"
:
"Czech"
,
"cu"
:
"Church Slavic, Old Slavonic, Church Slavonic, Old Bulgarian, Old Church Slavonic"
,
"cv"
:
"Chuvash"
,
"cy"
:
"Welsh"
,
"da"
:
"Danish"
,
"de"
:
"German"
,
"dv"
:
"Divehi, Dhivehi, Maldivian"
,
"dz"
:
"Dzongkha"
,
"ee"
:
"Ewe"
,
"el"
:
"Greek, Modern (1453–)"
,
"en"
:
"English"
,
"en-AU"
:
"English (Australia)"
,
"en-CA"
:
"English (Canada)"
,
"en-GB"
:
"English (UK)"
,
"en-IE"
:
"English (Ireland)"
,
"en-IN"
:
"English (India)"
,
"en-NZ"
:
"English (New Zealand)"
,
"en-SG"
:
"English (Singapore)"
,
"en-US"
:
"English (US)"
,
"en-ZA"
:
"English (South Africa)"
,
"eo"
:
"Esperanto"
,
"es"
:
"Spanish, Castilian"
,
"es-419"
:
"Spanish (Latin America)"
,
"es-US"
:
"Spanish (US)"
,
"et"
:
"Estonian"
,
"eu"
:
"Basque"
,
"fa"
:
"Persian"
,
"ff"
:
"Fulah"
,
"fi"
:
"Finnish"
,
"fj"
:
"Fijian"
,
"fo"
:
"Faroese"
,
"fr"
:
"French"
,
"fr-CA"
:
"French (Canada)"
,
"fy"
:
"Western Frisian"
,
"ga"
:
"Irish"
,
"gd"
:
"Gaelic, Scottish Gaelic"
,
"gl"
:
"Galician"
,
"gn"
:
"Guarani"
,
"gu"
:
"Gujarati"
,
"gv"
:
"Manx"
,
"ha"
:
"Hausa"
,
"he"
:
"Hebrew"
,
"hi"
:
"Hindi"
,
"ho"
:
"Hiri Motu"
,
"hr"
:
"Croatian"
,
"ht"
:
"Haitian, Haitian Creole"
,
"hu"
:
"Hungarian"
,
"hy"
:
"Armenian"
,
"hz"
:
"Herero"
,
"ia"
:
"Interlingua (International Auxiliary Language Association)"
,
"id"
:
"Indonesian"
,
"ie"
:
"Interlingue, Occidental"
,
"ig"
:
"Igbo"
,
"ii"
:
"Sichuan Yi, Nuosu"
,
"ik"
:
"Inupiaq"
,
"io"
:
"Ido"
,
"is"
:
"Icelandic"
,
"it"
:
"Italian"
,
"iu"
:
"Inuktitut"
,
"ja"
:
"Japanese"
,
"jv"
:
"Javanese"
,
"ka"
:
"Georgian"
,
"kg"
:
"Kongo"
,
"ki"
:
"Kikuyu, Gikuyu"
,
"kj"
:
"Kuanyama, Kwanyama"
,
"kk"
:
"Kazakh"
,
"kl"
:
"Kalaallisut, Greenlandic"
,
"km"
:
"Central Khmer"
,
"kn"
:
"Kannada"
,
"ko"
:
"Korean"
,
"kr"
:
"Kanuri"
,
"ks"
:
"Kashmiri"
,
"ku"
:
"Kurdish"
,
"kv"
:
"Komi"
,
"kw"
:
"Cornish"
,
"ky"
:
"Kirghiz, Kyrgyz"
,
"la"
:
"Latin"
,
"lb"
:
"Luxembourgish, Letzeburgesch"
,
"lg"
:
"Ganda"
,
"li"
:
"Limburgan, Limburger, Limburgish"
,
"ln"
:
"Lingala"
,
"lo"
:
"Lao"
,
"lt"
:
"Lithuanian"
,
"lu"
:
"Luba-Katanga"
,
"lv"
:
"Latvian"
,
"mg"
:
"Malagasy"
,
"mh"
:
"Marshallese"
,
"mi"
:
"Maori"
,
"mk"
:
"Macedonian"
,
"ml"
:
"Malayalam"
,
"mn"
:
"Mongolian"
,
"mr"
:
"Marathi"
,
"ms"
:
"Malay"
,
"mt"
:
"Maltese"
,
"my"
:
"Burmese"
,
"na"
:
"Nauru"
,
"nb"
:
"Norwegian Bokmål"
,
"nd"
:
"North Ndebele"
,
"ne"
:
"Nepali"
,
"ng"
:
"Ndonga"
,
"nl"
:
"Dutch, Flemish"
,
"nn"
:
"Norwegian Nynorsk"
,
"no"
:
"Norwegian"
,
"nr"
:
"South Ndebele"
,
"nv"
:
"Navajo, Navaho"
,
"ny"
:
"Chichewa, Chewa, Nyanja"
,
"oc"
:
"Occitan"
,
"oj"
:
"Ojibwa"
,
"om"
:
"Oromo"
,
"or"
:
"Oriya"
,
"os"
:
"Ossetian, Ossetic"
,
"pa"
:
"Punjabi, Panjabi"
,
"pi"
:
"Pali"
,
"pl"
:
"Polish"
,
"ps"
:
"Pashto, Pushto"
,
"pt"
:
"Portuguese"
,
"pt-BR"
:
"Portuguese (Brazil)"
,
"qu"
:
"Quechua"
,
"rm"
:
"Romansh"
,
"rn"
:
"Rundi"
,
"ro"
:
"Romanian, Moldavian, Moldovan"
,
"ru"
:
"Russian"
,
"rw"
:
"Kinyarwanda"
,
"sa"
:
"Sanskrit"
,
"sc"
:
"Sardinian"
,
"sd"
:
"Sindhi"
,
"se"
:
"Northern Sami"
,
"sg"
:
"Sango"
,
"si"
:
"Sinhala, Sinhalese"
,
"sk"
:
"Slovak"
,
"sl"
:
"Slovenian"
,
"sm"
:
"Samoan"
,
"sn"
:
"Shona"
,
"so"
:
"Somali"
,
"sq"
:
"Albanian"
,
"sr"
:
"Serbian"
,
"ss"
:
"Swati"
,
"st"
:
"Southern Sotho"
,
"su"
:
"Sundanese"
,
"sv"
:
"Swedish"
,
"sw"
:
"Swahili"
,
"ta"
:
"Tamil"
,
"te"
:
"Telugu"
,
"tg"
:
"Tajik"
,
"th"
:
"Thai"
,
"ti"
:
"Tigrinya"
,
"tk"
:
"Turkmen"
,
"tl"
:
"Tagalog"
,
"tn"
:
"Tswana"
,
"to"
:
"Tonga (Tonga Islands)"
,
"tr"
:
"Turkish"
,
"ts"
:
"Tsonga"
,
"tt"
:
"Tatar"
,
"tw"
:
"Twi"
,
"ty"
:
"Tahitian"
,
"ug"
:
"Uighur, Uyghur"
,
"uk"
:
"Ukrainian"
,
"ur"
:
"Urdu"
,
"uz"
:
"Uzbek"
,
"ve"
:
"Venda"
,
"vi"
:
"Vietnamese"
,
"vo"
:
"Volapük"
,
"wa"
:
"Walloon"
,
"wo"
:
"Wolof"
,
"xh"
:
"Xhosa"
,
"yi"
:
"Yiddish"
,
"yo"
:
"Yoruba"
,
"za"
:
"Zhuang, Chuang"
,
"zh"
:
"Chinese"
,
"zh-Hans"
:
"Chinese, Simplified"
,
"zh-Hant"
:
"Chinese, Traditional"
,
"zh-Hant-HK"
:
"Chinese, Traditional (Hong Kong)"
,
"zh-Hant-MO"
:
"Chinese, Traditional (Macao)"
,
"zh-Hant-TW"
:
"Chinese, Traditional (Taiwan)"
,
"zu"
:
"Zulu"
}
packages/uni-i18n/locale/json/locale.nls.zh_CN.json
0 → 100644
浏览文件 @
5b322033
{
"aa"
:
"阿法尔语"
,
"ab"
:
"阿布哈兹语"
,
"ae"
:
"阿维斯陀语"
,
"af"
:
"南非语"
,
"ak"
:
"阿坎语"
,
"am"
:
"阿姆哈拉语"
,
"an"
:
"阿拉贡语"
,
"ar"
:
"阿拉伯语"
,
"as"
:
"阿萨姆语"
,
"av"
:
"阿瓦尔语"
,
"ay"
:
"艾马拉语巴斯克语"
,
"az"
:
"阿塞拜疆语"
,
"ba"
:
"巴什基尔语"
,
"be"
:
"白俄罗斯语"
,
"bg"
:
"保加利亚语"
,
"bh"
:
"比哈尔语"
,
"bi"
:
"比斯拉马语"
,
"bm"
:
"班巴拉语"
,
"bn"
:
"孟加拉语"
,
"bo"
:
"藏语"
,
"br"
:
"布列塔尼语"
,
"bs"
:
"波斯尼亚语"
,
"ca"
:
"加泰隆语"
,
"ce"
:
"车臣语"
,
"ch"
:
"查莫罗语"
,
"co"
:
"科西嘉语"
,
"cr"
:
"克里语"
,
"cs"
:
"捷克语"
,
"cu"
:
"教会斯拉夫语"
,
"cv"
:
"楚瓦什语"
,
"cy"
:
"威尔士语"
,
"da"
:
"丹麦语"
,
"de"
:
"德语"
,
"dv"
:
"迪维西语"
,
"dz"
:
"宗喀语"
,
"ee"
:
"埃维语"
,
"el"
:
"希腊语"
,
"en"
:
"英语"
,
"en-AU"
:
"英语(澳大利亚)"
,
"en-CA"
:
"英语(加拿大)"
,
"en-GB"
:
"英语(英国)"
,
"en-IE"
:
"英语(爱尔兰)"
,
"en-IN"
:
"英语(印度)"
,
"en-NZ"
:
"英语(新西兰)"
,
"en-SG"
:
"英语(新加坡)"
,
"en-US"
:
"英语 (美国)"
,
"en-ZA"
:
"英语(南非)"
,
"eo"
:
"世界语"
,
"es"
:
"西班牙语"
,
"es-419"
:
"西班牙语(拉丁美洲)"
,
"es-US"
:
"西班牙语(美国)"
,
"et"
:
"爱沙尼亚语"
,
"eu"
:
"巴斯克语"
,
"fa"
:
"波斯语"
,
"ff"
:
"富拉语"
,
"fi"
:
"芬兰语"
,
"fj"
:
"斐济语"
,
"fo"
:
"法罗语"
,
"fr"
:
"法语"
,
"fr-CA"
:
"法语(加拿大)"
,
"fy"
:
"弗里斯兰语"
,
"ga"
:
"爱尔兰语"
,
"gd"
:
"苏格兰盖尔语"
,
"gl"
:
"加利西亚语"
,
"gn"
:
"瓜拉尼语"
,
"gu"
:
"古吉拉特语"
,
"gv"
:
"马恩岛语"
,
"ha"
:
"豪萨语"
,
"he"
:
"希伯来语"
,
"hi"
:
"印地语"
,
"ho"
:
"希里木托语"
,
"hr"
:
"克罗地亚语"
,
"ht"
:
"海地克里奥尔语"
,
"hu"
:
"匈牙利语"
,
"hy"
:
"亚美尼亚语"
,
"hz"
:
"赫雷罗语"
,
"ia"
:
"因特语"
,
"id"
:
"印尼语"
,
"ie"
:
"西方国际语"
,
"ig"
:
"伊博语"
,
"ii"
:
"彝语北部方言"
,
"ik"
:
"依努庇亚克语"
,
"io"
:
"伊多语"
,
"is"
:
"冰岛语"
,
"it"
:
"意大利语"
,
"iu"
:
"伊努克提图特语"
,
"ja"
:
"日语"
,
"jv"
:
"爪哇语"
,
"ka"
:
"格鲁吉亚语"
,
"kg"
:
"刚果语"
,
"ki"
:
"基库尤语"
,
"kj"
:
"宽亚玛语"
,
"kk"
:
"哈萨克语"
,
"kl"
:
"格陵兰语"
,
"km"
:
"高棉语"
,
"kn"
:
"康纳达语"
,
"ko"
:
"韩语"
,
"kr"
:
"卡努里语"
,
"ks"
:
"喀什米尔语"
,
"ku"
:
"库尔德语"
,
"kv"
:
"科米语"
,
"kw"
:
"康瓦尔语"
,
"ky"
:
"柯尔克孜语"
,
"la"
:
"拉丁语"
,
"lb"
:
"卢森堡语"
,
"lg"
:
"卢干达语"
,
"li"
:
"林堡语"
,
"ln"
:
"林格拉语"
,
"lo"
:
"老挝语"
,
"lt"
:
"立陶宛语"
,
"lu"
:
"卢巴卡丹加语"
,
"lv"
:
"拉脱维亚语"
,
"mg"
:
"马拉加斯语"
,
"mh"
:
"马绍尔语"
,
"mi"
:
"毛利语"
,
"mk"
:
"马其顿语"
,
"ml"
:
"马拉亚拉姆语"
,
"mn"
:
"蒙古语"
,
"mr"
:
"马拉提语"
,
"ms"
:
"马来语"
,
"mt"
:
"马耳他语"
,
"my"
:
"缅甸语"
,
"na"
:
"诺鲁语"
,
"nb"
:
"书面挪威语"
,
"nd"
:
"北恩德贝莱语"
,
"ne"
:
"尼泊尔语"
,
"ng"
:
"恩敦加语"
,
"nl"
:
"荷兰语"
,
"nn"
:
"新挪威语"
,
"no"
:
"挪威语"
,
"nr"
:
"南恩德贝勒语"
,
"nv"
:
"纳瓦荷语"
,
"ny"
:
"齐切瓦语"
,
"oc"
:
"奥克语"
,
"oj"
:
"欧及布威语"
,
"om"
:
"奥罗莫语"
,
"or"
:
"奥里亚语"
,
"os"
:
"奥塞提语"
,
"pa"
:
"旁遮普语"
,
"pi"
:
"巴利语"
,
"pl"
:
"波兰语"
,
"ps"
:
"普什图语"
,
"pt"
:
"葡萄牙语"
,
"pt-BR"
:
"葡萄牙语(巴西)"
,
"qu"
:
"奇楚瓦语"
,
"rm"
:
"罗曼什语"
,
"rn"
:
"克伦地语"
,
"ro"
:
"罗马尼亚语"
,
"ru"
:
"俄语"
,
"rw"
:
"卢旺达语"
,
"sa"
:
"梵语"
,
"sc"
:
"撒丁语"
,
"sd"
:
"信德语"
,
"se"
:
"北萨米语"
,
"sg"
:
"桑戈语"
,
"si"
:
"僧伽罗语"
,
"sk"
:
"斯洛伐克语"
,
"sl"
:
"斯洛文尼亚语"
,
"sm"
:
"萨摩亚语"
,
"sn"
:
"修纳语"
,
"so"
:
"索马里语"
,
"sq"
:
"阿尔巴尼亚语"
,
"sr"
:
"塞尔维亚语"
,
"ss"
:
"史瓦帝语"
,
"st"
:
"塞索托语"
,
"su"
:
"巽他语"
,
"sv"
:
"瑞典语"
,
"sw"
:
"斯瓦希里语"
,
"ta"
:
"泰米尔语"
,
"te"
:
"泰卢固语"
,
"tg"
:
"塔吉克斯坦语"
,
"th"
:
"泰语"
,
"ti"
:
"提格利尼亚语"
,
"tk"
:
"土库曼斯坦语"
,
"tl"
:
"他加禄语"
,
"tn"
:
"札那语"
,
"to"
:
"汤加语"
,
"tr"
:
"土耳其语"
,
"ts"
:
"聪加语"
,
"tt"
:
"鞑靼语"
,
"tw"
:
"契维语"
,
"ty"
:
"塔希提语"
,
"ug"
:
"维吾尔语"
,
"uk"
:
"乌克兰语"
,
"ur"
:
"乌尔都语"
,
"uz"
:
"乌兹别克斯坦语"
,
"ve"
:
"文达语"
,
"vi"
:
"越南语"
,
"vo"
:
"沃拉普克语"
,
"wa"
:
"瓦隆语"
,
"wo"
:
"沃洛夫语"
,
"xh"
:
"科萨语"
,
"yi"
:
"意第绪语"
,
"yo"
:
"约鲁巴语"
,
"za"
:
"壮语"
,
"zh"
:
"汉语"
,
"zh-Hans"
:
"中文(简体)"
,
"zh-Hant"
:
"中文(繁体)"
,
"zh-Hant-HK"
:
"中文(繁体,香港)"
,
"zh-Hant-MO"
:
"中文(繁体,澳门)"
,
"zh-Hant-TW"
:
"中文(繁体,台湾)"
,
"zu"
:
"祖鲁语"
}
packages/uni-i18n/locale/locale.en.js
0 → 100644
浏览文件 @
5b322033
// https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
const
trs
=
document
.
querySelector
(
'
.wikitable
'
).
querySelectorAll
(
'
tr
'
)
const
localeObj
=
{
'
es-US
'
:
'
Spanish (US)
'
,
'
es-419
'
:
'
Spanish (Latin America)
'
,
'
en-AU
'
:
'
English (Australia)
'
,
'
en-CA
'
:
'
English (Canada)
'
,
'
en-IN
'
:
'
English (India)
'
,
'
en-IE
'
:
'
English (Ireland)
'
,
'
en-NZ
'
:
'
English (New Zealand)
'
,
'
en-SG
'
:
'
English (Singapore)
'
,
'
en-ZA
'
:
'
English (South Africa)
'
,
'
en-GB
'
:
'
English (UK)
'
,
'
en-US
'
:
'
English (US)
'
,
'
fr-CA
'
:
'
French (Canada)
'
,
'
pt-BR
'
:
'
Portuguese (Brazil)
'
,
'
zh-Hans
'
:
'
Chinese, Simplified
'
,
'
zh-Hant
'
:
'
Chinese, Traditional
'
,
'
zh-Hant-HK
'
:
'
Chinese, Traditional (Hong Kong)
'
,
'
zh-Hant-MO
'
:
'
Chinese, Traditional (Macao)
'
,
'
zh-Hant-TW
'
:
'
Chinese, Traditional (Taiwan)
'
,
}
localeObj
.
bh
=
'
Bihari
'
trs
.
forEach
((
tr
,
index
)
=>
{
if
(
index
===
0
)
{
return
}
const
tds
=
tr
.
querySelectorAll
(
'
td
'
)
const
name
=
tds
[
2
].
innerText
.
trim
()
const
code
=
tds
[
4
].
innerText
.
trim
()
localeObj
[
code
]
=
name
})
const
locales
=
Object
.
keys
(
localeObj
)
.
sort
()
.
reduce
((
r
,
n
)
=>
{
r
[
n
]
=
localeObj
[
n
]
return
r
},
{})
console
.
log
(
locales
,
Object
.
keys
(
locales
).
length
,
JSON
.
stringify
(
locales
))
console
.
log
(
JSON
.
stringify
(
Object
.
keys
(
locales
).
reduce
((
r
,
n
)
=>
{
r
[
n
]
=
'
%
'
+
n
+
'
%
'
return
r
},
{})
)
)
packages/uni-i18n/locale/locale.zh.js
0 → 100644
浏览文件 @
5b322033
// https://zh.wikipedia.org/wiki/ISO_639-1%E4%BB%A3%E7%A0%81%E8%A1%A8
const
trs
=
document
.
querySelector
(
'
.wikitable
'
).
querySelectorAll
(
'
tr
'
)
const
localeObj
=
{
'
es-US
'
:
'
西班牙语(美国)
'
,
'
es-419
'
:
'
西班牙语(拉丁美洲)
'
,
'
en-AU
'
:
'
英语(澳大利亚)
'
,
'
en-CA
'
:
'
英语(加拿大)
'
,
'
en-IN
'
:
'
英语(印度)
'
,
'
en-IE
'
:
'
英语(爱尔兰)
'
,
'
en-NZ
'
:
'
英语(新西兰)
'
,
'
en-SG
'
:
'
英语(新加坡)
'
,
'
en-ZA
'
:
'
英语(南非)
'
,
'
en-GB
'
:
'
英语(英国)
'
,
'
en-US
'
:
'
英语 (美国)
'
,
'
fr-CA
'
:
'
法语(加拿大)
'
,
'
pt-BR
'
:
'
葡萄牙语(巴西)
'
,
'
zh-Hans
'
:
'
中文(简体)
'
,
'
zh-Hant
'
:
'
中文(繁体)
'
,
'
zh-Hant-HK
'
:
'
中文(繁体,香港)
'
,
'
zh-Hant-MO
'
:
'
中文(繁体,澳门)
'
,
'
zh-Hant-TW
'
:
'
中文(繁体,台湾)
'
,
}
trs
.
forEach
((
tr
,
index
)
=>
{
if
(
index
===
0
)
{
return
}
const
tds
=
tr
.
querySelectorAll
(
'
td
'
)
const
name
=
tds
[
2
].
innerText
.
trim
()
const
code
=
tds
[
5
].
innerText
.
trim
()
localeObj
[
code
]
=
name
})
const
locales
=
Object
.
keys
(
localeObj
)
.
sort
()
.
reduce
((
r
,
n
)
=>
{
r
[
n
]
=
localeObj
[
n
]
return
r
},
{})
console
.
log
(
locales
,
Object
.
keys
(
locales
).
length
,
JSON
.
stringify
(
locales
))
console
.
log
(
JSON
.
stringify
(
Object
.
keys
(
locales
).
reduce
((
r
,
n
)
=>
{
r
[
n
]
=
'
%
'
+
n
+
'
%
'
return
r
},
{})
)
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录