From 205aab77b8c04fde801db41ab9c5981716a136b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Rubi=C3=B1os=20Alonso?= Date: Mon, 27 Apr 2020 13:57:12 +0200 Subject: [PATCH] feat: Complete spanish locale. --- packages/material-ui/src/locale/index.ts | 50 ++++++++++++------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/material-ui/src/locale/index.ts b/packages/material-ui/src/locale/index.ts index dccba9fa90d4b7..30ee174dd39313 100644 --- a/packages/material-ui/src/locale/index.ts +++ b/packages/material-ui/src/locale/index.ts @@ -345,9 +345,9 @@ export const enUS: Localization = { export const esES: Localization = { props: { - // MuiBreadcrumbs: { - // expandText: 'Show path', - // }, + MuiBreadcrumbs: { + expandText: 'Mostrar ruta', + }, MuiTablePagination: { backIconButtonText: 'Página anterior', labelRowsPerPage: 'Filas por página:', @@ -356,7 +356,7 @@ export const esES: Localization = { }, MuiRating: { getLabelText: (value) => `${value} Estrella${value !== 1 ? 's' : ''}`, - emptyLabelText: 'Empty', + emptyLabelText: 'Vacío', }, MuiAutocomplete: { clearText: 'Limpiar', @@ -368,27 +368,27 @@ export const esES: Localization = { MuiAlert: { closeText: 'Cerrar', }, - // MuiPagination: { - // 'aria-label': 'Pagination navigation', - // getItemAriaLabel: (type, page, selected) => { - // if (type === 'page') { - // return `${selected ? '' : 'Go to '}page ${page}`; - // } - // if (type === 'first') { - // return 'Go to first page'; - // } - // if (type === 'last') { - // return 'Go to last page'; - // } - // if (type === 'next') { - // return 'Go to next page'; - // } - // if (type === 'previous') { - // return 'Go to previous page'; - // } - // return undefined; - // }, - // }, + MuiPagination: { + 'aria-label': 'Paginador', + getItemAriaLabel: (type, page, selected) => { + if (type === 'page') { + return `${selected ? '' : 'Ir a la '}página ${page}`; + } + if (type === 'first') { + return 'Ir a la primera página'; + } + if (type === 'last') { + return 'Ir a la última página'; + } + if (type === 'next') { + return 'Ir a la página siguiente'; + } + if (type === 'previous') { + return 'Ir a la página anterior'; + } + return undefined; + }, + }, }, };