You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
685 B
21 lines
685 B
9 years ago
|
import GregorianCalendarLocale from 'gregorian-calendar/lib/locale/zh_CN';
|
||
|
import CalendarLocale from 'rc-calendar/lib/locale/zh_CN';
|
||
9 years ago
|
import TimePickerLocale from '../../time-picker/locale/zh_CN';
|
||
9 years ago
|
import assign from 'object-assign';
|
||
9 years ago
|
// 统一合并为完整的 Locale
|
||
9 years ago
|
const locale = assign({}, GregorianCalendarLocale);
|
||
|
locale.lang = assign({
|
||
9 years ago
|
placeholder: '请选择日期',
|
||
9 years ago
|
rangePlaceholder: ['开始日期', '结束日期'],
|
||
9 years ago
|
}, CalendarLocale);
|
||
9 years ago
|
|
||
9 years ago
|
locale.timePickerLocale = assign({}, TimePickerLocale);
|
||
9 years ago
|
|
||
9 years ago
|
// should add whitespace between char in Button
|
||
|
locale.lang.ok = '确 定';
|
||
|
|
||
9 years ago
|
// All settings at:
|
||
|
// https://github.com/ant-design/ant-design/issues/424
|
||
|
|
||
|
export default locale;
|