Skip to content

Commit fce0c1c

Browse files
authored
[l10n] Improve pt-BR locale (#20734)
1 parent e3fb7e8 commit fce0c1c

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

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

+25-25
Original file line numberDiff line numberDiff line change
@@ -1075,9 +1075,9 @@ export const plPL: Localization = {
10751075

10761076
export const ptBR: Localization = {
10771077
props: {
1078-
// MuiBreadcrumbs: {
1079-
// expandText: 'Show path',
1080-
// },
1078+
MuiBreadcrumbs: {
1079+
expandText: 'Mostrar caminho',
1080+
},
10811081
MuiTablePagination: {
10821082
backIconButtonText: 'Página anterior',
10831083
labelRowsPerPage: 'Linhas por página:',
@@ -1086,7 +1086,7 @@ export const ptBR: Localization = {
10861086
},
10871087
MuiRating: {
10881088
getLabelText: (value) => `${value} Estrela${value !== 1 ? 's' : ''}`,
1089-
// emptyLabelText: 'Empty',
1089+
emptyLabelText: 'Vazio',
10901090
},
10911091
MuiAutocomplete: {
10921092
clearText: 'Limpar',
@@ -1098,27 +1098,27 @@ export const ptBR: Localization = {
10981098
MuiAlert: {
10991099
closeText: 'Fechar',
11001100
},
1101-
// MuiPagination: {
1102-
// 'aria-label': 'Pagination navigation',
1103-
// getItemAriaLabel: (type, page, selected) => {
1104-
// if (type === 'page') {
1105-
// return `${selected ? '' : 'Go to '}page ${page}`;
1106-
// }
1107-
// if (type === 'first') {
1108-
// return 'Go to first page';
1109-
// }
1110-
// if (type === 'last') {
1111-
// return 'Go to last page';
1112-
// }
1113-
// if (type === 'next') {
1114-
// return 'Go to next page';
1115-
// }
1116-
// if (type === 'previous') {
1117-
// return 'Go to previous page';
1118-
// }
1119-
// return undefined;
1120-
// },
1121-
// },
1101+
MuiPagination: {
1102+
'aria-label': 'Navegar pela paginação',
1103+
getItemAriaLabel: (type, page, selected) => {
1104+
if (type === 'page') {
1105+
return `${selected ? '' : 'Ir para a '}página ${page}`;
1106+
}
1107+
if (type === 'first') {
1108+
return 'Ir para a primeira página';
1109+
}
1110+
if (type === 'last') {
1111+
return 'Ir para a última página';
1112+
}
1113+
if (type === 'next') {
1114+
return 'Ir para a próxima página';
1115+
}
1116+
if (type === 'previous') {
1117+
return 'Ir para a página anterior';
1118+
}
1119+
return undefined;
1120+
},
1121+
},
11221122
},
11231123
};
11241124

0 commit comments

Comments
 (0)