Skip to content

Commit

Permalink
Improve ptPT locale with new keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hrafaelveloso committed Apr 21, 2020
1 parent 8658b0c commit 06fee79
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,9 @@ export const ptBR = {

export const ptPT = {
props: {
// MuiBreadcrumbs: {
// expandText: 'Show path',
// },
MuiBreadcrumbs: {
expandText: 'Mostrar caminho',
},
MuiTablePagination: {
backIconButtonText: 'Página anterior',
labelRowsPerPage: 'Linhas por página:',
Expand All @@ -1104,7 +1104,7 @@ export const ptPT = {
},
MuiRating: {
getLabelText: (value) => `${value} Estrela${value !== 1 ? 's' : ''}`,
// emptyLabelText: 'Empty',
emptyLabelText: 'Vazio',
},
MuiAutocomplete: {
clearText: 'Limpar',
Expand All @@ -1113,27 +1113,30 @@ export const ptPT = {
noOptionsText: 'Sem opções',
openText: 'Abrir',
},
// 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;
// },
// },
MuiAlert: {
closeText: 'Fechar',
},
MuiPagination: {
'aria-label': 'Navegar por páginas',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'Ir para a '}página ${page}`;
}
if (type === 'first') {
return 'Primeira página';
}
if (type === 'last') {
return 'Última página';
}
if (type === 'next') {
return 'Próxima página';
}
if (type === 'previous') {
return 'Página anterior';
}
return undefined;
},
},
},
};

Expand Down

0 comments on commit 06fee79

Please sign in to comment.