Skip to content

Commit 0712278

Browse files
Improve ptPT locale with new keys (#20673)
1 parent a88d62d commit 0712278

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

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

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,9 @@ export const ptBR = {
10931093

10941094
export const ptPT = {
10951095
props: {
1096-
// MuiBreadcrumbs: {
1097-
// expandText: 'Show path',
1098-
// },
1096+
MuiBreadcrumbs: {
1097+
expandText: 'Mostrar caminho',
1098+
},
10991099
MuiTablePagination: {
11001100
backIconButtonText: 'Página anterior',
11011101
labelRowsPerPage: 'Linhas por página:',
@@ -1104,7 +1104,7 @@ export const ptPT = {
11041104
},
11051105
MuiRating: {
11061106
getLabelText: (value) => `${value} Estrela${value !== 1 ? 's' : ''}`,
1107-
// emptyLabelText: 'Empty',
1107+
emptyLabelText: 'Vazio',
11081108
},
11091109
MuiAutocomplete: {
11101110
clearText: 'Limpar',
@@ -1113,27 +1113,30 @@ export const ptPT = {
11131113
noOptionsText: 'Sem opções',
11141114
openText: 'Abrir',
11151115
},
1116-
// MuiPagination: {
1117-
// 'aria-label': 'Pagination navigation',
1118-
// getItemAriaLabel: (type, page, selected) => {
1119-
// if (type === 'page') {
1120-
// return `${selected ? '' : 'Go to '}page ${page}`;
1121-
// }
1122-
// if (type === 'first') {
1123-
// return 'Go to first page';
1124-
// }
1125-
// if (type === 'last') {
1126-
// return 'Go to last page';
1127-
// }
1128-
// if (type === 'next') {
1129-
// return 'Go to next page';
1130-
// }
1131-
// if (type === 'previous') {
1132-
// return 'Go to previous page';
1133-
// }
1134-
// return undefined;
1135-
// },
1136-
// },
1116+
MuiAlert: {
1117+
closeText: 'Fechar',
1118+
},
1119+
MuiPagination: {
1120+
'aria-label': 'Navegar por páginas',
1121+
getItemAriaLabel: (type, page, selected) => {
1122+
if (type === 'page') {
1123+
return `${selected ? '' : 'Ir para a '}página ${page}`;
1124+
}
1125+
if (type === 'first') {
1126+
return 'Primeira página';
1127+
}
1128+
if (type === 'last') {
1129+
return 'Última página';
1130+
}
1131+
if (type === 'next') {
1132+
return 'Próxima página';
1133+
}
1134+
if (type === 'previous') {
1135+
return 'Página anterior';
1136+
}
1137+
return undefined;
1138+
},
1139+
},
11371140
},
11381141
};
11391142

0 commit comments

Comments
 (0)