Skip to content

Commit 8146693

Browse files
authored
Added China locales (#2900)
Signed-off-by: ajiho <[email protected]>
1 parent 5da648d commit 8146693

File tree

4 files changed

+180
-0
lines changed

4 files changed

+180
-0
lines changed

src/js/locales/zh-CN.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const name = 'zh-CN';
2+
3+
const localization = {
4+
today: '今天',
5+
clear: '清空',
6+
close: '关闭',
7+
selectMonth: '选择月份',
8+
previousMonth: '上个月',
9+
nextMonth: '下个月',
10+
selectYear: '选择年份',
11+
previousYear: '上一年',
12+
nextYear: '下一年',
13+
selectDecade: '选择年代',
14+
previousDecade: '下个年代',
15+
nextDecade: '上个年代',
16+
previousCentury: '上个世纪',
17+
nextCentury: '下个世纪',
18+
pickHour: '选取时钟',
19+
incrementHour: '加一小时',
20+
decrementHour: '减一小时',
21+
pickMinute: '选取分钟',
22+
incrementMinute: '加一分钟',
23+
decrementMinute: '减一分钟',
24+
pickSecond: '选取秒钟',
25+
incrementSecond: '加一秒钟',
26+
decrementSecond: '减一秒钟',
27+
toggleMeridiem: '切换上下午',
28+
selectTime: '选择时间',
29+
selectDate: '选择日期',
30+
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
31+
locale: 'zh-CN',
32+
startOfTheWeek: 1,
33+
dateFormats: {
34+
LT: 'HH:mm',
35+
LTS: 'HH:mm:ss',
36+
L: 'yyyy/MM/dd',
37+
LL: 'yyyy年Md日',
38+
LLL: 'yyyy年Md日Th点mm分',
39+
LLLL: 'yyyy年Md日ddddTh点mm分',
40+
},
41+
ordinal: (n) => n,
42+
format: 'L LT',
43+
};
44+
45+
export { localization, name };

src/js/locales/zh-HK.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const name = 'zh-HK';
2+
3+
const localization = {
4+
today: '今天',
5+
clear: '清空',
6+
close: '關閉',
7+
selectMonth: '選擇月份',
8+
previousMonth: '上個月',
9+
nextMonth: '下個月',
10+
selectYear: '選擇年份',
11+
previousYear: '上一年',
12+
nextYear: '下一年',
13+
selectDecade: '選擇年代',
14+
previousDecade: '下個年代',
15+
nextDecade: '上個年代',
16+
previousCentury: '上個世紀',
17+
nextCentury: '下個世紀',
18+
pickHour: '選取時鐘',
19+
incrementHour: '加一小時',
20+
decrementHour: '減一小時',
21+
pickMinute: '選取分鐘',
22+
incrementMinute: '加一分鐘',
23+
decrementMinute: '減一分鐘',
24+
pickSecond: '選取秒鐘',
25+
incrementSecond: '加一秒鐘',
26+
decrementSecond: '減一秒鐘',
27+
toggleMeridiem: '切換上下午',
28+
selectTime: '選擇時間',
29+
selectDate: '選擇日期',
30+
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
31+
locale: 'zh-HK',
32+
startOfTheWeek: 1,
33+
dateFormats: {
34+
LT: 'HH:mm',
35+
LTS: 'HH:mm:ss',
36+
L: 'yyyy/MM/dd',
37+
LL: 'yyyy年Md日',
38+
LLL: 'yyyy年Md日 HH:mm',
39+
LLLL: 'yyyy年Md日dddd HH:mm',
40+
},
41+
ordinal: (n) => n,
42+
format: 'L LT',
43+
};
44+
45+
export { localization, name };

src/js/locales/zh-MO.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const name = 'zh-MO';
2+
3+
const localization = {
4+
today: '今天',
5+
clear: '清空',
6+
close: '關閉',
7+
selectMonth: '選擇月份',
8+
previousMonth: '上個月',
9+
nextMonth: '下個月',
10+
selectYear: '選擇年份',
11+
previousYear: '上一年',
12+
nextYear: '下一年',
13+
selectDecade: '選擇年代',
14+
previousDecade: '下個年代',
15+
nextDecade: '上個年代',
16+
previousCentury: '上個世紀',
17+
nextCentury: '下個世紀',
18+
pickHour: '選取時鐘',
19+
incrementHour: '加一小時',
20+
decrementHour: '減一小時',
21+
pickMinute: '選取分鐘',
22+
incrementMinute: '加一分鐘',
23+
decrementMinute: '減一分鐘',
24+
pickSecond: '選取秒鐘',
25+
incrementSecond: '加一秒鐘',
26+
decrementSecond: '減一秒鐘',
27+
toggleMeridiem: '切換上下午',
28+
selectTime: '選擇時間',
29+
selectDate: '選擇日期',
30+
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
31+
locale: 'zh-MO',
32+
startOfTheWeek: 1,
33+
dateFormats: {
34+
LT: 'HH:mm',
35+
LTS: 'HH:mm:ss',
36+
L: 'dd/MM/yyyy',
37+
LL: 'yyyy年Md日',
38+
LLL: 'yyyy年Md日 HH:mm',
39+
LLLL: 'yyyy年Md日dddd HH:mm',
40+
},
41+
ordinal: (n) => n,
42+
format: 'L LT',
43+
};
44+
45+
export { localization, name };

src/js/locales/zh-TW.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const name = 'zh-TW';
2+
3+
const localization = {
4+
today: '今天',
5+
clear: '清空',
6+
close: '關閉',
7+
selectMonth: '選擇月份',
8+
previousMonth: '上個月',
9+
nextMonth: '下個月',
10+
selectYear: '選擇年份',
11+
previousYear: '上一年',
12+
nextYear: '下一年',
13+
selectDecade: '選擇年代',
14+
previousDecade: '下個年代',
15+
nextDecade: '上個年代',
16+
previousCentury: '上個世紀',
17+
nextCentury: '下個世紀',
18+
pickHour: '選取時鐘',
19+
incrementHour: '加一小時',
20+
decrementHour: '減一小時',
21+
pickMinute: '選取分鐘',
22+
incrementMinute: '加一分鐘',
23+
decrementMinute: '減一分鐘',
24+
pickSecond: '選取秒鐘',
25+
incrementSecond: '加一秒鐘',
26+
decrementSecond: '減一秒鐘',
27+
toggleMeridiem: '切換上下午',
28+
selectTime: '選擇時間',
29+
selectDate: '選擇日期',
30+
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
31+
locale: 'zh-TW',
32+
startOfTheWeek: 1,
33+
dateFormats: {
34+
LT: 'HH:mm',
35+
LTS: 'HH:mm:ss',
36+
L: 'yyyy/MM/dd',
37+
LL: 'yyyy年MD日',
38+
LLL: 'yyyy年MD日 HH:mm',
39+
LLLL: 'yyyy年MD日dddd HH:mm',
40+
},
41+
ordinal: (n) => n,
42+
format: 'L LT',
43+
};
44+
45+
export { localization, name };

0 commit comments

Comments
 (0)