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.
32 lines
1.0 KiB
32 lines
1.0 KiB
5 years ago
|
import CalendarLocale from 'rc-picker/lib/locale/zh_CN';
|
||
9 years ago
|
import TimePickerLocale from '../../time-picker/locale/zh_CN';
|
||
3 years ago
|
import type { PickerLocale } from '../generatePicker';
|
||
9 years ago
|
|
||
5 years ago
|
// 统一合并为完整的 Locale
|
||
|
const locale: PickerLocale = {
|
||
8 years ago
|
lang: {
|
||
8 years ago
|
placeholder: '请选择日期',
|
||
5 years ago
|
yearPlaceholder: '请选择年份',
|
||
5 years ago
|
quarterPlaceholder: '请选择季度',
|
||
5 years ago
|
monthPlaceholder: '请选择月份',
|
||
|
weekPlaceholder: '请选择周',
|
||
8 years ago
|
rangePlaceholder: ['开始日期', '结束日期'],
|
||
5 years ago
|
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
||
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
||
3 years ago
|
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
||
5 years ago
|
rangeWeekPlaceholder: ['开始周', '结束周'],
|
||
8 years ago
|
...CalendarLocale,
|
||
|
},
|
||
|
timePickerLocale: {
|
||
|
...TimePickerLocale,
|
||
|
},
|
||
8 years ago
|
};
|
||
9 years ago
|
|
||
9 years ago
|
// should add whitespace between char in Button
|
||
3 years ago
|
locale.lang.ok = '确定';
|
||
9 years ago
|
|
||
9 years ago
|
// All settings at:
|
||
8 years ago
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||
9 years ago
|
|
||
|
export default locale;
|