UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

91 lines (90 loc) 3.01 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.ukUA = void 0; var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber")); const formatNumber = (0, _buildFormatNumber.default)('uk-UA'); const ukUA = exports.ukUA = { components: { MuiBreadcrumbs: { defaultProps: { expandText: 'Показати шлях сторінок' } }, MuiTablePagination: { defaultProps: { getItemAriaLabel: type => { if (type === 'first') { return 'Перейти на першу сторінку'; } if (type === 'last') { return 'Перейти на останню сторінку'; } if (type === 'next') { return 'Перейти на наступну сторінку'; } // if (type === 'previous') { return 'Перейти на попередню сторінку'; }, labelRowsPerPage: 'Рядків на сторінці:', labelDisplayedRows: ({ from, to, count }) => `${formatNumber(from)}${formatNumber(to)} з ${count !== -1 ? formatNumber(count) : `понад ${formatNumber(to)}`}` } }, MuiRating: { defaultProps: { getLabelText: value => { let pluralForm = 'Зірок'; const lastDigit = value % 10; if (lastDigit > 1 && lastDigit < 5) { pluralForm = 'Зірки'; } else if (lastDigit === 1) { pluralForm = 'Зірка'; } return `${value} ${pluralForm}`; }, emptyLabelText: 'Рейтинг відсутній' } }, MuiAutocomplete: { defaultProps: { clearText: 'Очистити', closeText: 'Згорнути', loadingText: 'Завантаження…', noOptionsText: 'Немає варіантів', openText: 'Розгорнути' } }, MuiAlert: { defaultProps: { closeText: 'Згорнути' } }, MuiPagination: { defaultProps: { 'aria-label': 'Навігація сторінками', getItemAriaLabel: (type, page, selected) => { if (type === 'page') { return `${selected ? '' : 'Перейти на '}сторінку ${page}`; } if (type === 'first') { return 'Перейти на першу сторінку'; } if (type === 'last') { return 'Перейти на останню сторінку'; } if (type === 'next') { return 'Перейти на наступну сторінку'; } // if (type === 'previous') { return 'Перейти на попередню сторінку'; } } } } };