import CalendarLocale from 'rc-picker/lib/locale/es_ES'; import TimePickerLocale from '../../time-picker/locale/es_ES'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Seleccionar fecha', rangePlaceholder: ['Fecha inicial', 'Fecha final'], yearPlaceholder: 'Seleccionar año', rangeYearPlaceholder: ['Año inicial', 'Año final'], quarterPlaceholder: 'Seleccionar trimestre', rangeQuarterPlaceholder: ['Trimestre inicial', 'Trimestre final'], monthPlaceholder: 'Seleccionar mes', rangeMonthPlaceholder: ['Mes inicial', 'Mes final'], weekPlaceholder: 'Seleccionar semana', rangeWeekPlaceholder: ['Semana inicial', 'Semana final'], ...CalendarLocale, dateFormat: 'DD/MMM/YYYY', monthFormat: 'MMM', yearFormat: 'YYYY', }, timePickerLocale: { ...TimePickerLocale, }, dateFormat: "DD/MM/YYYY", weekFormat: "wo/YYYY", monthFormat: "MM/YYYY", quarterFormat: "Qo/YYYY", yearFormat: "YYYY", }; // All settings at: // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json export default locale;