stupa-pdf-api/frontend/node_modules/@mui/x-date-pickers/locales/ukUA.js

59 lines
3.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { getPickersLocalization } from './utils/getPickersLocalization';
const timeViews = {
hours: 'годин',
minutes: 'хвилин',
seconds: 'секунд',
meridiem: 'Південь'
};
const ukUAPickers = {
// Calendar navigation
previousMonth: 'Попередній місяць',
nextMonth: 'Наступний місяць',
// View navigation
openPreviousView: 'відкрити попередній вигляд',
openNextView: 'відкрити наступний вигляд',
calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'річний вигляд відкрито, перейти до календарного вигляду' : 'календарний вигляд відкрито, перейти до річного вигляду',
// DateRange placeholders
start: 'Початок',
end: 'Кінець',
// Action bar
cancelButtonLabel: 'Відміна',
clearButtonLabel: 'Очистити',
okButtonLabel: 'OK',
todayButtonLabel: 'Сьогодні',
// Toolbar titles
datePickerToolbarTitle: 'Вибрати дату',
dateTimePickerToolbarTitle: 'Вибрати дату і час',
timePickerToolbarTitle: 'Вибрати час',
dateRangePickerToolbarTitle: 'Вибрати календарний період',
// Clock labels
clockLabelText: (view, time, adapter) => `Вибрати ${timeViews[view]}. ${time === null ? 'Час не вибраний' : `Вибрано час ${adapter.format(time, 'fullTime')}`}`,
hoursClockNumberText: hours => `${hours} годин`,
minutesClockNumberText: minutes => `${minutes} хвилин`,
secondsClockNumberText: seconds => `${seconds} секунд`,
// Digital clock labels
selectViewText: view => `Вибрати ${timeViews[view]}`,
// Calendar labels
calendarWeekNumberHeaderLabel: 'Номер тижня',
calendarWeekNumberHeaderText: '#',
calendarWeekNumberAriaLabelText: weekNumber => `Тиждень ${weekNumber}`,
calendarWeekNumberText: weekNumber => `${weekNumber}`,
// Open picker labels
openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть дату, обрана дата ${utils.format(value, 'fullDate')}` : 'Оберіть дату',
openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Оберіть час, обраний час ${utils.format(value, 'fullTime')}` : 'Оберіть час',
// fieldClearLabel: 'Clear value',
// Table labels
timeTableLabel: 'оберіть час',
dateTableLabel: 'оберіть дату',
// Field section placeholders
fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
fieldDayPlaceholder: () => 'DD',
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldHoursPlaceholder: () => 'hh',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa'
};
export const ukUA = getPickersLocalization(ukUAPickers);