From 82e214f9df0448dd8aed147f84b3285e54cc6856 Mon Sep 17 00:00:00 2001 From: Radu Chiriac Date: Sat, 14 Dec 2019 00:33:55 +0200 Subject: [PATCH] Update documentation and locale/index.js --- .../pages/guides/localization/localization.md | 1 + packages/material-ui/src/locale/index.d.ts | 1 + packages/material-ui/src/locale/index.js | 21 +++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index a3d669e00a2016..b89647b4bd7119 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -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` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index 6254a07c7e6fd5..fb54a204ac0e06 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -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; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 5f2ece97c6ec82..ec9dd208d14b2a 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -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: {