Datepicker internationalisation

This commit is contained in:
Mocilac
2025-08-11 14:00:21 +02:00
parent 9197813517
commit d6f1908431
2 changed files with 49 additions and 5 deletions
+33
View File
@@ -39,6 +39,23 @@ const messages = {
// 月份格式
monthFormat: (month: number) => `${month}`,
// 月份名称
monthNames: [
'一月',
'二月',
'三月',
'四月',
'五月',
'六月',
'七月',
'八月',
'九月',
'十月',
'十一月',
'十二月',
],
weekDays:['日', '一', '二', '三', '四', '五', '六'],
// 其他
milestone: '里程碑',
targetDate: '目标日期',
@@ -191,6 +208,22 @@ const messages = {
// 月份格式
monthFormat: (month: number) => `M${String(month).padStart(2, '0')}`,
// Month name
monthNames: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
],
weekDays:['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
// 其他
milestone: 'Milestone',
targetDate: 'Target Date',