Skip to content

Commit

Permalink
[l10n] Add Romanian (roRO) locale (#18825)
Browse files Browse the repository at this point in the history
  • Loading branch information
raduchiriac authored and oliviertassinari committed Dec 14, 2019
1 parent 5000843 commit 86b5402
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
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 @@ -38,6 +38,7 @@ const theme = createMuiTheme({
| Persian | fa-IR | `faIR` |
| Polish | pl-PL | `plPL` |
| Portuguese (Brazil) | pt-BR | `ptBR` |
| Romanian | ro-RO | `roRO` |
| Russian | ru-RU | `ruRU` |
| Spanish | es-ES | `esES` |
| Swedish | sv-SE | `svSE` |
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 @@ -9,6 +9,7 @@ export const jaJP: object;
export const nlNL: object;
export const plPL: object;
export const ptBR: object;
export const roRO: object;
export const ruRU: object;
export const svSE: object;
export const trTR: 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 @@ -244,6 +244,27 @@ export const ptBR = {
},
};

export const roRO = {
props: {
MuiTablePagination: {
backIconButtonText: 'Pagina precedentă',
labelRowsPerPage: 'Rânduri pe pagină:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} din ${count}`,
nextIconButtonText: 'Pagina următoare',
},
MuiRating: {
getLabelText: value => `${value} St${value !== 1 ? 'ele' : 'ea'}`,
},
MuiAutocomplete: {
clearText: 'Șterge',
closeText: 'Închide',
loadingText: 'Se încarcă…',
noOptionsText: 'Nicio opțiune',
openText: 'Deschide',
},
},
};

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

0 comments on commit 86b5402

Please sign in to comment.