Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added China locales #2900

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 };