ant-design/components/datepicker/locale.js

14 lines
541 B
JavaScript
Raw Normal View History

2015-10-23 23:50:26 +08:00
import objectAssign from 'object-assign';
2015-11-03 13:50:36 +08:00
import GregorianCalendarLocale from 'gregorian-calendar/lib/locale/zh_CN.js';
import CalendarLocale from 'rc-calendar/lib/locale/zh_CN.js';
import GregorianCalendarFormatLocale from 'gregorian-calendar-format/lib/locale/zh_CN';
2015-10-23 23:50:26 +08:00
// 统一合并为完整的 Locale
let locale = objectAssign({}, GregorianCalendarLocale);
locale.lang = objectAssign({}, CalendarLocale, GregorianCalendarFormatLocale);
// All settings at:
// https://github.com/ant-design/ant-design/issues/424
export default locale;