2019-12-11 23:32:19 +08:00
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/zh_CN';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2016-04-07 17:44:13 +08:00
|
|
|
import TimePickerLocale from '../../time-picker/locale/zh_CN';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2015-10-23 23:50:26 +08:00
|
|
|
|
2020-03-12 10:49:32 +08:00
|
|
|
// 统一合并为完整的 Locale
|
|
|
|
const locale: PickerLocale = {
|
2017-07-03 16:57:11 +08:00
|
|
|
lang: {
|
2016-09-09 13:55:21 +08:00
|
|
|
placeholder: '请选择日期',
|
2019-12-11 23:32:19 +08:00
|
|
|
yearPlaceholder: '请选择年份',
|
2020-03-21 22:43:04 +08:00
|
|
|
quarterPlaceholder: '请选择季度',
|
2019-12-11 23:32:19 +08:00
|
|
|
monthPlaceholder: '请选择月份',
|
|
|
|
weekPlaceholder: '请选择周',
|
2016-09-09 13:55:21 +08:00
|
|
|
rangePlaceholder: ['开始日期', '结束日期'],
|
2019-12-11 23:32:19 +08:00
|
|
|
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
|
|
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
2022-02-17 13:38:49 +08:00
|
|
|
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
2019-12-11 23:32:19 +08:00
|
|
|
rangeWeekPlaceholder: ['开始周', '结束周'],
|
2017-07-03 16:57:11 +08:00
|
|
|
...CalendarLocale,
|
|
|
|
},
|
|
|
|
timePickerLocale: {
|
|
|
|
...TimePickerLocale,
|
|
|
|
},
|
2016-09-09 13:55:21 +08:00
|
|
|
};
|
2016-04-07 17:44:13 +08:00
|
|
|
|
2015-12-25 01:44:06 +08:00
|
|
|
// should add whitespace between char in Button
|
2021-11-22 18:40:02 +08:00
|
|
|
locale.lang.ok = '确定';
|
2015-12-25 01:44:06 +08:00
|
|
|
|
2015-10-23 23:50:26 +08:00
|
|
|
// All settings at:
|
2017-01-04 10:08:35 +08:00
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
2015-10-23 23:50:26 +08:00
|
|
|
|
|
|
|
export default locale;
|