Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Add Portuguese (pt-PT) locale #18987

Merged
merged 2 commits into from
Dec 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const theme = createMuiTheme({
| Persian | fa-IR | `faIR` |
| Polish | pl-PL | `plPL` |
| Portuguese (Brazil) | pt-BR | `ptBR` |
| Portuguese | pt-PT | `ptPT` |
| Romanian | ro-RO | `roRO` |
| Russian | ru-RU | `ruRU` |
| Slovak | sk-SK | `skSK` |
Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const koKR: object;
export const nlNL: object;
export const plPL: object;
export const ptBR: object;
export const ptPT: object;
export const roRO: object;
export const ruRU: object;
export const skSK: object;
Expand Down
21 changes: 21 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,27 @@ export const ptBR = {
},
};

export const ptPT = {
props: {
MuiTablePagination: {
backIconButtonText: 'Página anterior',
labelRowsPerPage: 'Linhas por página:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} de ${count}`,
nextIconButtonText: 'Próxima página',
},
MuiRating: {
getLabelText: value => `${value} Estrela${value !== 1 ? 's' : ''}`,
},
MuiAutocomplete: {
clearText: 'Limpar',
closeText: 'Fechar',
loadingText: 'A carregar…',
noOptionsText: 'Sem opções',
openText: 'Abrir',
},
},
};

export const roRO = {
props: {
MuiTablePagination: {
Expand Down