Преглед на файлове

DatePicker: support amPm i18n

Leopoldthecoder преди 8 години
родител
ревизия
d6f3be8354
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      packages/date-picker/src/util/index.js

+ 2 - 1
packages/date-picker/src/util/index.js

@@ -8,7 +8,8 @@ const getI18nSettings = () => {
     dayNamesShort: 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 }`)),
-    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']
   };
 };