mirror of https://github.com/ElemeFE/element
DatePicker: support amPm i18n
parent
122c3690df
commit
d6f3be8354
|
@ -8,7 +8,8 @@ const getI18nSettings = () => {
|
||||||
dayNamesShort: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
dayNamesShort: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
||||||
dayNames: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
dayNames: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
||||||
monthNamesShort: months.map(month => t(`el.datepicker.months.${ month }`)),
|
monthNamesShort: months.map(month => t(`el.datepicker.months.${ month }`)),
|
||||||
monthNames: months.map((month, index) => t(`el.datepicker.month${ index + 1 }`))
|
monthNames: months.map((month, index) => t(`el.datepicker.month${ index + 1 }`)),
|
||||||
|
amPm: ['am', 'pm']
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue