import { getPickersLocalization } from './utils/getPickersLocalization'; const views = { hours: 'las horas', minutes: 'los minutos', seconds: 'los segundos' }; const esESPickers = { // Calendar navigation previousMonth: 'Último mes', nextMonth: 'Próximo mes', // View navigation openPreviousView: 'abrir la última vista', openNextView: 'abrir la siguiente vista', calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'la vista del año está abierta, cambie a la vista de calendario' : 'la vista de calendario está abierta, cambie a la vista del año', inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => isKeyboardInputOpen ? `la vista de entrada de texto está abierta, ir a la vista ${viewType}` : `la vista ${viewType} está abierta, ir a la vista de entrada de texto`, // DateRange placeholders start: 'Empezar', end: 'Terminar', // Action bar cancelButtonLabel: 'Cancelar', clearButtonLabel: 'Limpiar', okButtonLabel: 'OK', todayButtonLabel: 'Hoy', // Toolbar titles datePickerDefaultToolbarTitle: 'Seleccionar fecha', dateTimePickerDefaultToolbarTitle: 'Seleccionar fecha & hora', timePickerDefaultToolbarTitle: 'Seleccionar hora', dateRangePickerDefaultToolbarTitle: 'Seleccionar rango de fecha', // Clock labels clockLabelText: (view, time, adapter) => `Seleccione ${views[view]}. ${time === null ? 'Sin tiempo seleccionado' : `El tiempo seleccionado es ${adapter.format(time, 'fullTime')}`}`, hoursClockNumberText: hours => `${hours} horas`, minutesClockNumberText: minutes => `${minutes} minutos`, secondsClockNumberText: seconds => `${seconds} segundos`, // Open picker labels openDatePickerDialogue: (rawValue, utils) => rawValue && utils.isValid(utils.date(rawValue)) ? `Elige la fecha, la fecha elegida es ${utils.format(utils.date(rawValue), 'fullDate')}` : 'Elige la fecha', openTimePickerDialogue: (rawValue, utils) => rawValue && utils.isValid(utils.date(rawValue)) ? `Elige la hora, la hora elegido es ${utils.format(utils.date(rawValue), 'fullTime')}` : 'Elige la hora', // Table labels timeTableLabel: 'elige la fecha', dateTableLabel: 'elige la hora' }; export const esES = getPickersLocalization(esESPickers);