Skip to content

Commit 70e8e96

Browse files
authored
[l10n] Improve es-ES locale (#20794)
1 parent 72cd216 commit 70e8e96

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

packages/material-ui/src/locale/index.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ export const enUS: Localization = {
345345

346346
export const esES: Localization = {
347347
props: {
348-
// MuiBreadcrumbs: {
349-
// expandText: 'Show path',
350-
// },
348+
MuiBreadcrumbs: {
349+
expandText: 'Mostrar ruta',
350+
},
351351
MuiTablePagination: {
352352
backIconButtonText: 'Página anterior',
353353
labelRowsPerPage: 'Filas por página:',
@@ -356,7 +356,7 @@ export const esES: Localization = {
356356
},
357357
MuiRating: {
358358
getLabelText: (value) => `${value} Estrella${value !== 1 ? 's' : ''}`,
359-
emptyLabelText: 'Empty',
359+
emptyLabelText: 'Vacío',
360360
},
361361
MuiAutocomplete: {
362362
clearText: 'Limpiar',
@@ -368,27 +368,27 @@ export const esES: Localization = {
368368
MuiAlert: {
369369
closeText: 'Cerrar',
370370
},
371-
// MuiPagination: {
372-
// 'aria-label': 'Pagination navigation',
373-
// getItemAriaLabel: (type, page, selected) => {
374-
// if (type === 'page') {
375-
// return `${selected ? '' : 'Go to '}page ${page}`;
376-
// }
377-
// if (type === 'first') {
378-
// return 'Go to first page';
379-
// }
380-
// if (type === 'last') {
381-
// return 'Go to last page';
382-
// }
383-
// if (type === 'next') {
384-
// return 'Go to next page';
385-
// }
386-
// if (type === 'previous') {
387-
// return 'Go to previous page';
388-
// }
389-
// return undefined;
390-
// },
391-
// },
371+
MuiPagination: {
372+
'aria-label': 'Paginador',
373+
getItemAriaLabel: (type, page, selected) => {
374+
if (type === 'page') {
375+
return `${selected ? '' : 'Ir a la '}página ${page}`;
376+
}
377+
if (type === 'first') {
378+
return 'Ir a la primera página';
379+
}
380+
if (type === 'last') {
381+
return 'Ir a la última página';
382+
}
383+
if (type === 'next') {
384+
return 'Ir a la página siguiente';
385+
}
386+
if (type === 'previous') {
387+
return 'Ir a la página anterior';
388+
}
389+
return undefined;
390+
},
391+
},
392392
},
393393
};
394394

0 commit comments

Comments
 (0)