From 9af3e4fc554072ef297ebae3b107334636c07dd5 Mon Sep 17 00:00:00 2001 From: plandem Date: Thu, 14 Apr 2016 07:57:59 +0400 Subject: [PATCH] ru locale (#1411) --- components/calendar/locale/ru_RU.js | 1 + components/date-picker/locale/ru_RU.js | 22 ++++++++++++++++++ components/locale-provider/ru_RU.js | 32 ++++++++++++++++++++++++++ components/time-picker/locale/ru_RU.js | 12 ++++++++++ 4 files changed, 67 insertions(+) create mode 100644 components/calendar/locale/ru_RU.js create mode 100644 components/date-picker/locale/ru_RU.js create mode 100644 components/locale-provider/ru_RU.js create mode 100644 components/time-picker/locale/ru_RU.js diff --git a/components/calendar/locale/ru_RU.js b/components/calendar/locale/ru_RU.js new file mode 100644 index 0000000000..aea2dd9a41 --- /dev/null +++ b/components/calendar/locale/ru_RU.js @@ -0,0 +1 @@ +module.exports = require('../../date-picker/locale/ru_RU'); diff --git a/components/date-picker/locale/ru_RU.js b/components/date-picker/locale/ru_RU.js new file mode 100644 index 0000000000..b64f5c6bbd --- /dev/null +++ b/components/date-picker/locale/ru_RU.js @@ -0,0 +1,22 @@ +/** + * Created by Andrey Gayvoronsky on 13/04/16. + */ + +import GregorianCalendarLocale from 'gregorian-calendar/lib/locale/ru_RU'; +import CalendarLocale from 'rc-calendar/lib/locale/ru_RU'; +import TimePickerLocale from '../../time-picker/locale/ru_RU'; + +let locale = { ...GregorianCalendarLocale }; +locale.lang = { + placeholder: 'Выберите дату', + rangePlaceholder: ['Начальная дата', 'Конечная дата'], + ...CalendarLocale, +}; + +locale.timePickerLocale = { ...TimePickerLocale }; + +// All settings at: +// https://github.com/ant-design/ant-design/issues/424 + +export default locale; + diff --git a/components/locale-provider/ru_RU.js b/components/locale-provider/ru_RU.js new file mode 100644 index 0000000000..623beae54a --- /dev/null +++ b/components/locale-provider/ru_RU.js @@ -0,0 +1,32 @@ +/** + * Created by Andrey Gayvoronsky on 13/04/16. + */ + +export default { + Pagination: require('rc-pagination/lib/locale/ru_RU'), + DatePicker: require('../date-picker/locale/ru_RU'), + TimePicker: require('../time-picker/locale/ru_RU'), + Calendar: require('../calendar/locale/ru_RU'), + Table: { + filterTitle: 'Фильтр', + filterConfirm: 'OK', + filterReset: 'Сбросить', + emptyText: 'Нет данных', + }, + Modal: { + okText: 'OK', + cancelText: 'Отмена', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Отмена', + }, + Transfer: { + notFoundContent: 'Not Found', + searchPlaceholder: 'Search here', + itemUnit: 'item', + itemsUnit: 'items', + }, +}; + diff --git a/components/time-picker/locale/ru_RU.js b/components/time-picker/locale/ru_RU.js new file mode 100644 index 0000000000..134bfae691 --- /dev/null +++ b/components/time-picker/locale/ru_RU.js @@ -0,0 +1,12 @@ +/** + * Created by Andrey Gayvoronsky on 13/04/16. + */ +import TimepickerLocale from 'rc-time-picker/lib/locale/ru_RU'; + +const locale = { + placeholder: 'Выберите время', + ... TimepickerLocale, +}; + +export default locale; +