UNPKG

@ozen-ui/kit

Version:

React component library

279 lines (278 loc) 9.14 kB
import { NEXT, PAGE, PREVIOUS } from '../components/Pagination/constants'; export var ruRU = { defaultProps: { Alert: { closeText: 'Закрыть', }, Autocomplete: { noOptionsText: 'Ничего не найдено', closeText: 'Закрыть', openText: 'Открыть', clearText: 'Очистить', loadingText: 'Загрузка…', }, AutocompleteNext: { noOptionsText: 'Ничего не найдено', closeText: 'Закрыть', openText: 'Открыть', clearText: 'Очистить', loadingText: 'Загрузка…', }, AutocompleteBaseInput: { openText: 'Открыть', clearText: 'Очистить', closeText: 'Закрыть', }, DataListCard: { loadingText: 'Загрузка…', noOptionsText: 'Ничего не найдено', }, Breadcrumbs: { 'aria-label': 'Навигация', }, Dialog: { closeButtonProps: { 'aria-label': 'Закрыть', }, }, Drawer: { closeButtonProps: { 'aria-label': 'Закрыть', }, }, FileUploaderLoader: { text: 'Загрузка…', }, Loader: { 'aria-label': 'Загрузка', }, FilePicker: { placeholder: 'Файл не выбран', clearText: 'Очистить поле', }, InputNumber: { incrementButtonText: 'Увеличить', decrementButtonText: 'Уменьшить', }, Pagination: { 'aria-label': 'Навигация по страницам', getItemAriaLabel: function (_a) { var page = _a.page, type = _a.type, selected = _a.selected; if (type === NEXT) { return 'Перейти на следующую страницу'; } if (type === PREVIOUS) { return 'Перейти на предыдущую страницу'; } if (selected) { return "\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 ".concat(page); } if (type === PAGE) { return "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 ".concat(page); } return ''; }, }, Calendar: { locale: 'ru-RU', getPeriodSwitchAriaLabel: function (step) { if (step === 'days') { return ['Предыдущий месяц', 'Следующий месяц']; } if (step === 'months') { return ['Предыдущий год', 'Следующий год']; } return ['Предыдущий период', 'Следующий период']; }, }, DatePicker: { clearText: 'Очистить', placeholder: 'ДД.ММ.ГГГГ', }, }, }; export var kkKZ = { defaultProps: { Alert: { closeText: 'Жабу', }, Autocomplete: { noOptionsText: 'Ештеңе табылған жоқ', closeText: 'Жабу', openText: 'Ашу', clearText: 'Тазалау', loadingText: 'Жүктеу…', }, AutocompleteNext: { noOptionsText: 'Ештеңе табылған жоқ', closeText: 'Жабу', openText: 'Ашу', clearText: 'Тазалау', loadingText: 'Жүктеу…', }, AutocompleteBaseInput: { openText: 'Ашу', clearText: 'Тазалау', closeText: 'Жабу', }, DataListCard: { loadingText: 'Жүктеу…', noOptionsText: 'Ештеңе табылған жоқ', }, Breadcrumbs: { 'aria-label': 'Навигация', }, Dialog: { closeButtonProps: { 'aria-label': 'Жабу', }, }, Drawer: { closeButtonProps: { 'aria-label': 'Жабу', }, }, FileUploaderLoader: { text: 'Жүктеу…', }, Loader: { 'aria-label': 'Жүктеу', }, FilePicker: { placeholder: 'Файл таңдалмаған', clearText: 'Өрісті тазалаңыз', }, InputNumber: { incrementButtonText: 'Үлкейту', decrementButtonText: 'Азайту', }, Pagination: { 'aria-label': 'Беттерді шарлау', getItemAriaLabel: function (_a) { var page = _a.page, type = _a.type, selected = _a.selected; if (type === NEXT) { return 'Келесі бетке өтіңіз'; } if (type === PREVIOUS) { return 'Алдыңғы бетке өтіңіз'; } if (selected) { return "".concat(page, " \u0431\u0435\u0442"); } if (type === PAGE) { return "".concat(page, "-\u0431\u0435\u0442\u043A\u0435 \u04E9\u0442\u0456\u04A3\u0456\u0437"); } return ''; }, }, Calendar: { locale: 'kk-KZ', getPeriodSwitchAriaLabel: function (step) { if (step === 'days') { return ['Алдыңғы ай', 'Келесі ай']; } if (step === 'months') { return ['Өткен жыл', 'Келесі жыл']; } return ['Алдыңғы кезең', 'Келесі кезең']; }, }, DatePicker: { clearText: 'Тазалау', placeholder: 'КК.АА.ЖЖЖЖ', }, }, }; export var enUS = { defaultProps: { Alert: { closeText: 'Close', }, Autocomplete: { noOptionsText: 'No options', closeText: 'Close', openText: 'Open', clearText: 'Clear', loadingText: 'Loading…', }, AutocompleteNext: { noOptionsText: 'No options', closeText: 'Close', openText: 'Open', clearText: 'Clear', loadingText: 'Loading…', }, AutocompleteBaseInput: { openText: 'Open', clearText: 'Clear', closeText: 'Close', }, DataListCard: { loadingText: 'Loading…', noOptionsText: 'No options', }, Breadcrumbs: { 'aria-label': 'Navigation', }, Dialog: { closeButtonProps: { 'aria-label': 'Close', }, }, Drawer: { closeButtonProps: { 'aria-label': 'Close', }, }, FileUploaderLoader: { text: 'Loading…', }, Loader: { 'aria-label': 'Loading', }, FilePicker: { placeholder: 'No file selected', clearText: 'Clear field', }, InputNumber: { incrementButtonText: 'Increment', decrementButtonText: 'Decrement', }, Pagination: { 'aria-label': 'Pagination navigation', getItemAriaLabel: function (_a) { var page = _a.page, type = _a.type, selected = _a.selected; if (type === NEXT) { return 'Go to next page'; } if (type === PREVIOUS) { return 'Go to previous page'; } if (selected) { return "Page ".concat(page); } if (type === PAGE) { return "Go to page ".concat(page); } return ''; }, }, Calendar: { locale: 'en-US', startDay: 0, getPeriodSwitchAriaLabel: function (step) { if (step === 'days') { return ['Previous month', 'Next month']; } if (step === 'months') { return ['Previous year', 'Next year']; } return ['Previous period', 'Next period']; }, }, DatePicker: { clearText: 'Clear', placeholder: 'DD.MM.YYYY', }, }, };