Skip to content

Commit

Permalink
Added China locales (#2900)
Browse files Browse the repository at this point in the history
Signed-off-by: ajiho <lujiahao@88.com>
  • Loading branch information
ajiho authored Mar 28, 2024
1 parent 5da648d commit 8146693
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/js/locales/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const name = 'zh-CN';

const localization = {
today: '今天',
clear: '清空',
close: '关闭',
selectMonth: '选择月份',
previousMonth: '上个月',
nextMonth: '下个月',
selectYear: '选择年份',
previousYear: '上一年',
nextYear: '下一年',
selectDecade: '选择年代',
previousDecade: '下个年代',
nextDecade: '上个年代',
previousCentury: '上个世纪',
nextCentury: '下个世纪',
pickHour: '选取时钟',
incrementHour: '加一小时',
decrementHour: '减一小时',
pickMinute: '选取分钟',
incrementMinute: '加一分钟',
decrementMinute: '减一分钟',
pickSecond: '选取秒钟',
incrementSecond: '加一秒钟',
decrementSecond: '减一秒钟',
toggleMeridiem: '切换上下午',
selectTime: '选择时间',
selectDate: '选择日期',
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
locale: 'zh-CN',
startOfTheWeek: 1,
dateFormats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'yyyy/MM/dd',
LL: 'yyyy年Md日',
LLL: 'yyyy年Md日Th点mm分',
LLLL: 'yyyy年Md日ddddTh点mm分',
},
ordinal: (n) => n,
format: 'L LT',
};

export { localization, name };
45 changes: 45 additions & 0 deletions src/js/locales/zh-HK.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const name = 'zh-HK';

const localization = {
today: '今天',
clear: '清空',
close: '關閉',
selectMonth: '選擇月份',
previousMonth: '上個月',
nextMonth: '下個月',
selectYear: '選擇年份',
previousYear: '上一年',
nextYear: '下一年',
selectDecade: '選擇年代',
previousDecade: '下個年代',
nextDecade: '上個年代',
previousCentury: '上個世紀',
nextCentury: '下個世紀',
pickHour: '選取時鐘',
incrementHour: '加一小時',
decrementHour: '減一小時',
pickMinute: '選取分鐘',
incrementMinute: '加一分鐘',
decrementMinute: '減一分鐘',
pickSecond: '選取秒鐘',
incrementSecond: '加一秒鐘',
decrementSecond: '減一秒鐘',
toggleMeridiem: '切換上下午',
selectTime: '選擇時間',
selectDate: '選擇日期',
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
locale: 'zh-HK',
startOfTheWeek: 1,
dateFormats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'yyyy/MM/dd',
LL: 'yyyy年Md日',
LLL: 'yyyy年Md日 HH:mm',
LLLL: 'yyyy年Md日dddd HH:mm',
},
ordinal: (n) => n,
format: 'L LT',
};

export { localization, name };
45 changes: 45 additions & 0 deletions src/js/locales/zh-MO.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const name = 'zh-MO';

const localization = {
today: '今天',
clear: '清空',
close: '關閉',
selectMonth: '選擇月份',
previousMonth: '上個月',
nextMonth: '下個月',
selectYear: '選擇年份',
previousYear: '上一年',
nextYear: '下一年',
selectDecade: '選擇年代',
previousDecade: '下個年代',
nextDecade: '上個年代',
previousCentury: '上個世紀',
nextCentury: '下個世紀',
pickHour: '選取時鐘',
incrementHour: '加一小時',
decrementHour: '減一小時',
pickMinute: '選取分鐘',
incrementMinute: '加一分鐘',
decrementMinute: '減一分鐘',
pickSecond: '選取秒鐘',
incrementSecond: '加一秒鐘',
decrementSecond: '減一秒鐘',
toggleMeridiem: '切換上下午',
selectTime: '選擇時間',
selectDate: '選擇日期',
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
locale: 'zh-MO',
startOfTheWeek: 1,
dateFormats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'dd/MM/yyyy',
LL: 'yyyy年Md日',
LLL: 'yyyy年Md日 HH:mm',
LLLL: 'yyyy年Md日dddd HH:mm',
},
ordinal: (n) => n,
format: 'L LT',
};

export { localization, name };
45 changes: 45 additions & 0 deletions src/js/locales/zh-TW.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const name = 'zh-TW';

const localization = {
today: '今天',
clear: '清空',
close: '關閉',
selectMonth: '選擇月份',
previousMonth: '上個月',
nextMonth: '下個月',
selectYear: '選擇年份',
previousYear: '上一年',
nextYear: '下一年',
selectDecade: '選擇年代',
previousDecade: '下個年代',
nextDecade: '上個年代',
previousCentury: '上個世紀',
nextCentury: '下個世紀',
pickHour: '選取時鐘',
incrementHour: '加一小時',
decrementHour: '減一小時',
pickMinute: '選取分鐘',
incrementMinute: '加一分鐘',
decrementMinute: '減一分鐘',
pickSecond: '選取秒鐘',
incrementSecond: '加一秒鐘',
decrementSecond: '減一秒鐘',
toggleMeridiem: '切換上下午',
selectTime: '選擇時間',
selectDate: '選擇日期',
dayViewHeaderFormat: { month: 'long', year: '2-digit' },
locale: 'zh-TW',
startOfTheWeek: 1,
dateFormats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'yyyy/MM/dd',
LL: 'yyyy年MD日',
LLL: 'yyyy年MD日 HH:mm',
LLLL: 'yyyy年MD日dddd HH:mm',
},
ordinal: (n) => n,
format: 'L LT',
};

export { localization, name };

0 comments on commit 8146693

Please sign in to comment.