Skip to content

Commit bd77a98

Browse files
authored
Merge pull request #390 from Shopify/sh.zh-hant-translations-cn-tw
Add Traditional Chinese translations for Chinese provinces and subdivisions of Taiwan
2 parents d6f40cb + d1632e3 commit bd77a98

File tree

4 files changed

+176
-1
lines changed

4 files changed

+176
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2626
- Security in case of vulnerabilities.
2727

2828
## [Unreleased]
29-
- Fix broken CLDR data rake tasks [#389](https://github.com/Shopify/worldwide/pull/389/)
29+
- Fix broken CLDR data rake tasks [#389](https://github.com/Shopify/worldwide/pull/389)
3030
- Read paths files in `configure_i18n` instead of at module initialization (ibid.)
3131
- Regenerate files to include minor translation updates from previously released changes (ibid.)
3232
- Add CI for CLDR data rake tasks (ibid.)
33+
- Add Traditional Chinese translations for Chinese provinces and subdivisions of Taiwan [#390](https://github.com/Shopify/worldwide/pull/390)
3334

3435
---
3536

data/cldr/locales/zh-Hant/subdivisions.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,62 @@
22
zh-Hant:
33
subdivisions:
44
arc: 布宜諾斯艾利斯自治市
5+
cnah: 安徽
6+
cnbj: 北京
7+
cncq: 重慶
8+
cnfj: 福建
9+
cngd: 廣東
10+
cngs: 甘肅
11+
cngx: 廣西
12+
cngz: 貴州
13+
cnha: 河南
14+
cnhb: 湖北
15+
cnhe: 河北
16+
cnhi: 海南
17+
cnhk: 香港
18+
cnhl: 黑龍江
19+
cnhn: 湖南
20+
cnjl: 吉林
21+
cnjs: 江蘇
22+
cnjx: 江西
23+
cnln: 遼寧
24+
cnmo: 澳門
25+
cnnm: 內蒙古
26+
cnnx: 寧夏
27+
cnqh: 青海
28+
cnsc: 四川
29+
cnsd: 山東
30+
cnsh: 上海
31+
cnsn: 陝西
32+
cnsx: 山西
33+
cntj: 天津
34+
cntw: 台灣
35+
cnxj: 新疆
36+
cnxz: 西藏
37+
cnyn: 雲南
38+
cnzj: 浙江
539
gbeng: 英格蘭
640
gbsct: 蘇格蘭
741
gbwls: 威爾斯
42+
twcha: 彰化
43+
twcyi: 嘉義縣
44+
twcyq: 嘉義
45+
twhsq: 新竹縣
46+
twhsz: 新竹
47+
twhua: 花蓮
48+
twila: 宜蘭
49+
twkee: 基隆
50+
twkhh: 高雄
51+
twkin: 金門
52+
twlie: 連江
53+
twmia: 苗栗
54+
twnan: 南投
55+
twnwt: 新北市
56+
twpen: 澎湖
57+
twpif: 屏東
58+
twtao: 桃園
59+
twtnn: 臺南
60+
twtpe: 臺北市
61+
twttt: 臺東
62+
twtxg: 臺中
63+
twyun: 雲林

data/cldr/locales/zh-TW/subdivisions.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,62 @@
22
zh-TW:
33
subdivisions:
44
arc: 布宜諾斯艾利斯自治市
5+
cnah: 安徽
6+
cnbj: 北京
7+
cncq: 重慶
8+
cnfj: 福建
9+
cngd: 廣東
10+
cngs: 甘肅
11+
cngx: 廣西
12+
cngz: 貴州
13+
cnha: 河南
14+
cnhb: 湖北
15+
cnhe: 河北
16+
cnhi: 海南
17+
cnhk: 香港
18+
cnhl: 黑龍江
19+
cnhn: 湖南
20+
cnjl: 吉林
21+
cnjs: 江蘇
22+
cnjx: 江西
23+
cnln: 遼寧
24+
cnmo: 澳門
25+
cnnm: 內蒙古
26+
cnnx: 寧夏
27+
cnqh: 青海
28+
cnsc: 四川
29+
cnsd: 山東
30+
cnsh: 上海
31+
cnsn: 陝西
32+
cnsx: 山西
33+
cntj: 天津
34+
cntw: 台灣
35+
cnxj: 新疆
36+
cnxz: 西藏
37+
cnyn: 雲南
38+
cnzj: 浙江
539
gbeng: 英格蘭
640
gbsct: 蘇格蘭
741
gbwls: 威爾斯
42+
twcha: 彰化
43+
twcyi: 嘉義縣
44+
twcyq: 嘉義
45+
twhsq: 新竹縣
46+
twhsz: 新竹
47+
twhua: 花蓮
48+
twila: 宜蘭
49+
twkee: 基隆
50+
twkhh: 高雄
51+
twkin: 金門
52+
twlie: 連江
53+
twmia: 苗栗
54+
twnan: 南投
55+
twnwt: 新北市
56+
twpen: 澎湖
57+
twpif: 屏東
58+
twtao: 桃園
59+
twtnn: 臺南
60+
twtpe: 臺北市
61+
twttt: 臺東
62+
twtxg: 臺中
63+
twyun: 雲林

rake/cldr/patch.rb

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,68 @@ def perform
994994
[:svus, "乌苏卢坦省", "乌苏卢坦"],
995995
])
996996

997+
# Traditional Chinese translations for Chinese provinces and subdivisions of Taiwan
998+
patch_subdivisions(:"zh-Hant", [
999+
[:cnah, nil, "安徽"],
1000+
[:cnbj, nil, "北京"],
1001+
[:cncq, nil, "重慶"],
1002+
[:cnfj, nil, "福建"],
1003+
[:cngd, nil, "廣東"],
1004+
[:cngs, nil, "甘肅"],
1005+
[:cngx, nil, "廣西"],
1006+
[:cngz, nil, "貴州"],
1007+
[:cnha, nil, "河南"],
1008+
[:cnhb, nil, "湖北"],
1009+
[:cnhe, nil, "河北"],
1010+
[:cnhi, nil, "海南"],
1011+
[:cnhk, nil, "香港"],
1012+
[:cnhl, nil, "黑龍江"],
1013+
[:cnhn, nil, "湖南"],
1014+
[:cnjl, nil, "吉林"],
1015+
[:cnjs, nil, "江蘇"],
1016+
[:cnjx, nil, "江西"],
1017+
[:cnln, nil, "遼寧"],
1018+
[:cnmo, nil, "澳門"],
1019+
[:cnnm, nil, "內蒙古"],
1020+
[:cnnx, nil, "寧夏"],
1021+
[:cnqh, nil, "青海"],
1022+
[:cnsc, nil, "四川"],
1023+
[:cnsd, nil, "山東"],
1024+
[:cnsh, nil, "上海"],
1025+
[:cnsn, nil, "陝西"],
1026+
[:cnsx, nil, "山西"],
1027+
[:cntj, nil, "天津"],
1028+
[:cntw, nil, "台灣"],
1029+
[:cnxj, nil, "新疆"],
1030+
[:cnxz, nil, "西藏"],
1031+
[:cnyn, nil, "雲南"],
1032+
[:cnzj, nil, "浙江"],
1033+
])
1034+
patch_subdivisions(:"zh-Hant", [
1035+
[:twcha, nil, "彰化"],
1036+
[:twcyi, nil, "嘉義縣"],
1037+
[:twcyq, nil, "嘉義"],
1038+
[:twhsq, nil, "新竹縣"],
1039+
[:twhsz, nil, "新竹"],
1040+
[:twhua, nil, "花蓮"],
1041+
[:twila, nil, "宜蘭"],
1042+
[:twkee, nil, "基隆"],
1043+
[:twkhh, nil, "高雄"],
1044+
[:twkin, nil, "金門"],
1045+
[:twlie, nil, "連江"],
1046+
[:twmia, nil, "苗栗"],
1047+
[:twnan, nil, "南投"],
1048+
[:twnwt, nil, "新北市"],
1049+
[:twpen, nil, "澎湖"],
1050+
[:twpif, nil, "屏東"],
1051+
[:twtao, nil, "桃園"],
1052+
[:twtnn, nil, "臺南"],
1053+
[:twtpe, nil, "臺北市"],
1054+
[:twttt, nil, "臺東"],
1055+
[:twtxg, nil, "臺中"],
1056+
[:twyun, nil, "雲林"],
1057+
])
1058+
9971059
# Thai date formats use the `G` field ("era name") in their date formats.
9981060
# But I18n.l has no support for era names.
9991061
# However in practice, years from both the Gregorian and Thai Solar Calendars are commonly used in Thailand, without any disambiguating era names

0 commit comments

Comments
 (0)