ant-design/components/locale-provider/ru_RU.tsx
Benjy Cui 0aabdb3d8b fix: locale should follow LocaleProvider, close: #4495 (#4503)
* fix: locale should follow LocaleProvider, close: #4495

* test: update snapshot

* fix: fix some bugs
2017-01-09 16:25:58 +08:00

45 lines
1020 B
TypeScript

/**
* Created by Andrey Gayvoronsky on 13/04/16.
*/
import moment from 'moment';
import 'moment/locale/ru';
moment.locale('ru');
import Pagination from 'rc-pagination/lib/locale/ru_RU';
import DatePicker from '../date-picker/locale/ru_RU';
import TimePicker from '../time-picker/locale/ru_RU';
import Calendar from '../calendar/locale/ru_RU';
export default {
locale: 'ru',
Pagination,
DatePicker,
TimePicker,
Calendar,
Table: {
filterTitle: 'Фильтр',
filterConfirm: 'OK',
filterReset: 'Сбросить',
emptyText: 'Нет данных',
},
Modal: {
okText: 'OK',
cancelText: 'Отмена',
justOkText: 'OK',
},
Popconfirm: {
okText: 'OK',
cancelText: 'Отмена',
},
Transfer: {
notFoundContent: 'Ничего не найдено',
searchPlaceholder: 'Введите название для поиска',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Ничего не найдено',
},
};