Skip to content

Commit

Permalink
[l10n] Improve Spanish (es-ES) locale (#12858)
Browse files Browse the repository at this point in the history
  • Loading branch information
soler1212 authored Apr 19, 2024
1 parent e22f3cc commit 14c577f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"languageTag": "es-ES",
"importName": "esES",
"localeName": "Spanish",
"missingKeysCount": 13,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/esES.ts"
},
Expand Down
42 changes: 21 additions & 21 deletions packages/x-date-pickers/src/locales/esES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
import { TimeViewWithMeridiem } from '../internals/models';

const views: Record<TimeViewWithMeridiem, string> = {
hours: 'las horas',
minutes: 'los minutos',
seconds: 'los segundos',
meridiem: 'meridiano',
hours: 'Horas',
minutes: 'Minutos',
seconds: 'Segundos',
meridiem: 'Meridiano',
};

const esESPickers: Partial<PickersLocaleText<any>> = {
// Calendar navigation
previousMonth: 'Último mes',
nextMonth: 'Próximo mes',
previousMonth: 'Mes anterior',
nextMonth: 'Mes siguiente',

// 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',
? 'la vista anual está abierta, cambie a la vista de calendario'
: 'la vista de calendario está abierta, cambie a la vista anual',

// DateRange labels
start: 'Empezar',
end: 'Terminar',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Fecha inicio',
startTime: 'Hora inicio',
endDate: 'Fecha final',
endTime: 'Hora final',

// Action bar
cancelButtonLabel: 'Cancelar',
Expand Down Expand Up @@ -84,17 +84,17 @@ const esESPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'Año',
month: 'Mes',
day: 'Dia',
weekDay: 'Dia de la semana',
hours: 'Horas',
minutes: 'Minutos',
seconds: 'Segundos',
meridiem: 'Meridiano',

// Common
// empty: 'Empty',
empty: 'Vacío',
};

export const esES = getPickersLocalization(esESPickers);

0 comments on commit 14c577f

Please sign in to comment.