2020-12-28 15:30:18 +08:00
|
|
|
|
/** Created by Andrey Gayvoronsky on 13/04/16. */
|
2016-04-14 11:57:59 +08:00
|
|
|
|
|
2019-12-11 23:32:19 +08:00
|
|
|
|
import CalendarLocale from 'rc-picker/lib/locale/ru_RU';
|
2016-04-14 11:57:59 +08:00
|
|
|
|
import TimePickerLocale from '../../time-picker/locale/ru_RU';
|
2022-05-07 14:31:54 +08:00
|
|
|
|
import type { PickerLocale } from '../generatePicker';
|
2016-04-14 11:57:59 +08:00
|
|
|
|
|
2020-03-12 10:49:32 +08:00
|
|
|
|
// Merge into a locale object
|
|
|
|
|
const locale: PickerLocale = {
|
2017-07-03 16:57:11 +08:00
|
|
|
|
lang: {
|
2016-09-09 13:55:21 +08:00
|
|
|
|
placeholder: 'Выберите дату',
|
2020-08-02 13:41:44 +08:00
|
|
|
|
yearPlaceholder: 'Выберите год',
|
|
|
|
|
quarterPlaceholder: 'Выберите квартал',
|
|
|
|
|
monthPlaceholder: 'Выберите месяц',
|
|
|
|
|
weekPlaceholder: 'Выберите неделю',
|
2016-09-09 13:55:21 +08:00
|
|
|
|
rangePlaceholder: ['Начальная дата', 'Конечная дата'],
|
2020-08-03 23:21:29 +08:00
|
|
|
|
rangeYearPlaceholder: ['Начальный год', 'Год окончания'],
|
2020-08-02 13:41:44 +08:00
|
|
|
|
rangeMonthPlaceholder: ['Начальный месяц', 'Конечный месяц'],
|
|
|
|
|
rangeWeekPlaceholder: ['Начальная неделя', 'Конечная неделя'],
|
2024-03-08 06:53:16 +08:00
|
|
|
|
shortWeekDays: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
|
2024-03-05 11:58:03 +08:00
|
|
|
|
shortMonths: ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'],
|
2017-07-03 16:57:11 +08:00
|
|
|
|
...CalendarLocale,
|
|
|
|
|
},
|
|
|
|
|
timePickerLocale: {
|
|
|
|
|
...TimePickerLocale,
|
|
|
|
|
},
|
2016-09-09 13:55:21 +08:00
|
|
|
|
};
|
2016-04-14 11:57:59 +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
|
2016-04-14 11:57:59 +08:00
|
|
|
|
|
|
|
|
|
export default locale;
|