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.
29 lines
936 B
29 lines
936 B
5 years ago
|
import CalendarLocale from 'rc-picker/lib/locale/en_GB';
|
||
8 years ago
|
import TimePickerLocale from '../../time-picker/locale/en_GB';
|
||
3 years ago
|
import type { PickerLocale } from '../generatePicker';
|
||
8 years ago
|
|
||
|
// Merge into a locale object
|
||
5 years ago
|
const locale: PickerLocale = {
|
||
8 years ago
|
lang: {
|
||
8 years ago
|
placeholder: 'Select date',
|
||
4 years ago
|
yearPlaceholder: 'Select year',
|
||
|
quarterPlaceholder: 'Select quarter',
|
||
|
monthPlaceholder: 'Select month',
|
||
|
weekPlaceholder: 'Select week',
|
||
8 years ago
|
rangePlaceholder: ['Start date', 'End date'],
|
||
4 years ago
|
rangeYearPlaceholder: ['Start year', 'End year'],
|
||
3 years ago
|
rangeQuarterPlaceholder: ['Start quarter', 'End quarter'],
|
||
4 years ago
|
rangeMonthPlaceholder: ['Start month', 'End month'],
|
||
|
rangeWeekPlaceholder: ['Start week', 'End week'],
|
||
8 years ago
|
...CalendarLocale,
|
||
|
},
|
||
|
timePickerLocale: {
|
||
|
...TimePickerLocale,
|
||
|
},
|
||
8 years ago
|
};
|
||
|
|
||
|
// All settings at:
|
||
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||
|
|
||
|
export default locale;
|