Skip to content

Commit 3ec7bf4

Browse files
authored
feat: 增加香港繁体支持 (#9100)
1 parent 6b51b6f commit 3ec7bf4

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

packages/provider/src/intl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import ukUA from './locale/uk_UA';
3030
import uzUZ from './locale/uz_UZ';
3131
import viVN from './locale/vi_VN';
3232
import zhCN from './locale/zh_CN';
33+
import zhHK from './locale/zh_HK';
3334
import zhTW from './locale/zh_TW';
3435

3536
export type IntlType = {
@@ -76,6 +77,7 @@ const ruRUIntl = createIntl('ru_RU', ruRU);
7677
const srRSIntl = createIntl('sr_RS', srRS);
7778
const msMYIntl = createIntl('ms_MY', msMY);
7879
const zhTWIntl = createIntl('zh_TW', zhTW);
80+
const zhHKIntl = createIntl('zh_HK', zhHK);
7981
const frFRIntl = createIntl('fr_FR', frFR);
8082
const ptBRIntl = createIntl('pt_BR', ptBR);
8183
const koKRIntl = createIntl('ko_KR', koKR);
@@ -110,6 +112,7 @@ const intlMap = {
110112
'sr-RS': srRSIntl,
111113
'ms-MY': msMYIntl,
112114
'zh-TW': zhTWIntl,
115+
'zh-HK': zhHKIntl,
113116
'fr-FR': frFRIntl,
114117
'pt-BR': ptBRIntl,
115118
'ko-KR': koKRIntl,
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
export default {
2+
moneySymbol: 'HK$',
3+
deleteThisLine: '刪除此項',
4+
copyThisLine: '複製此項',
5+
form: {
6+
lightFilter: {
7+
more: '更多篩選',
8+
clear: '清除',
9+
confirm: '確認',
10+
itemUnit: '項',
11+
},
12+
},
13+
tableForm: {
14+
search: '搜尋', // 「查詢」 → 「搜尋」
15+
reset: '重設', // 「重置」 → 「重設」
16+
submit: '提交',
17+
collapsed: '展開',
18+
expand: '收起',
19+
inputPlaceholder: '請輸入',
20+
selectPlaceholder: '請選擇',
21+
},
22+
alert: {
23+
clear: '取消選取', // 「選擇」 → 「選取」
24+
selected: '已選取',
25+
item: '項',
26+
},
27+
pagination: {
28+
total: {
29+
range: '第',
30+
total: '項/總共', // 「條」 → 「項」
31+
item: '項',
32+
},
33+
},
34+
tableToolBar: {
35+
leftPin: '固定到左邊',
36+
rightPin: '固定到右邊',
37+
noPin: '不固定',
38+
leftFixedTitle: '固定在左側',
39+
rightFixedTitle: '固定在右側',
40+
noFixedTitle: '不固定',
41+
reset: '重設',
42+
columnDisplay: '列顯示', // 「列展示」→「列顯示」
43+
columnSetting: '列設定', // 「設置」→「設定」
44+
fullScreen: '全螢幕', // 「全屏」→「全螢幕」
45+
exitFullScreen: '退出全螢幕', // 「退出全屏」→「退出全螢幕」
46+
reload: '重新整理', // 「刷新」→「重新整理」
47+
density: '密度',
48+
densityDefault: '正常',
49+
densityLarger: '寬鬆',
50+
densityMiddle: '中等',
51+
densitySmall: '緊湊',
52+
},
53+
stepsForm: {
54+
next: '下一步',
55+
prev: '上一步',
56+
submit: '完成',
57+
},
58+
loginForm: {
59+
submitText: '登入',
60+
},
61+
editableTable: {
62+
onlyOneLineEditor: '只能同時編輯一行',
63+
action: {
64+
save: '保存',
65+
cancel: '取消',
66+
delete: '刪除',
67+
add: '新增一行資料',
68+
},
69+
},
70+
switch: {
71+
open: '打開',
72+
close: '關閉',
73+
},
74+
};

0 commit comments

Comments
 (0)