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.
30 lines
1.1 KiB
30 lines
1.1 KiB
4 years ago
|
/** Created by Andrey Gayvoronsky on 13/04/16. */
|
||
9 years ago
|
|
||
5 years ago
|
import CalendarLocale from 'rc-picker/lib/locale/ru_RU';
|
||
9 years ago
|
import TimePickerLocale from '../../time-picker/locale/ru_RU';
|
||
3 years ago
|
import type { PickerLocale } from '../generatePicker';
|
||
9 years ago
|
|
||
5 years ago
|
// Merge into a locale object
|
||
|
const locale: PickerLocale = {
|
||
8 years ago
|
lang: {
|
||
8 years ago
|
placeholder: 'Выберите дату',
|
||
4 years ago
|
yearPlaceholder: 'Выберите год',
|
||
|
quarterPlaceholder: 'Выберите квартал',
|
||
|
monthPlaceholder: 'Выберите месяц',
|
||
|
weekPlaceholder: 'Выберите неделю',
|
||
8 years ago
|
rangePlaceholder: ['Начальная дата', 'Конечная дата'],
|
||
4 years ago
|
rangeYearPlaceholder: ['Начальный год', 'Год окончания'],
|
||
4 years ago
|
rangeMonthPlaceholder: ['Начальный месяц', 'Конечный месяц'],
|
||
|
rangeWeekPlaceholder: ['Начальная неделя', 'Конечная неделя'],
|
||
8 years ago
|
...CalendarLocale,
|
||
|
},
|
||
|
timePickerLocale: {
|
||
|
...TimePickerLocale,
|
||
|
},
|
||
8 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;
|