From ed453549133e4f02f3f64f015db60fc61447d403 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 22 Nov 2019 19:55:19 +0100 Subject: [PATCH] update the docs --- .../pages/guides/localization/localization.md | 3 +- packages/material-ui/src/locale/index.d.ts | 2 +- packages/material-ui/src/locale/index.js | 42 +++++++++---------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index b1bddbb8f9e2d6..645304648171fe 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -31,9 +31,10 @@ const theme = createMuiTheme({ | English (United States) | en-US | `enUS` | | French | fr-FR | `frFR` | | German | de-DE | `deDE` | +| Italian | it-IT | `itIT` | | Japanese | ja-JP | `jaJP` | -| Portuguese (Brazil) | pt-BR | `ptBR` | | Persian | fa-IR | `faIR` | +| Portuguese (Brazil) | pt-BR | `ptBR` | | Russian | ru-RU | `ruRU` | | Spanish | es-ES | `esES` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index 7d8cd331d60a9b..b36c378b19d5c4 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -1,10 +1,10 @@ export const deDE: object; export const enUS: object; export const esES: object; +export const faIR: object; export const frFR: object; export const itIT: object; export const jaJP: object; export const ptBR: object; export const ruRU: object; export const zhCN: object; -export const faIR: object; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 70057d66c1340e..7143e283105788 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -64,6 +64,27 @@ export const esES = { }, }; +export const faIR = { + props: { + MuiTablePagination: { + backIconButtonText: 'صفحهٔ قبل', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} از ${count}`, + labelRowsPerPage: 'تعداد سطرهای هر صفحه:', + nextIconButtonText: 'صفحهٔ بعد', + }, + MuiRating: { + getLabelText: value => `${value} ستاره`, + }, + MuiAutocomplete: { + clearText: 'پاک‌کردن', + closeText: 'بستن', + loadingText: 'در حال بارگذاری…', + noOptionsText: 'بی‌نتیجه', + openText: 'بازکردن', + }, + }, +}; + export const frFR = { props: { MuiTablePagination: { @@ -200,24 +221,3 @@ export const zhCN = { }, }, }; - -export const faIR = { - props: { - MuiTablePagination: { - backIconButtonText: 'صفحهٔ قبل', - labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} از ${count}`, - labelRowsPerPage: 'تعداد سطرهای هر صفحه:', - nextIconButtonText: 'صفحهٔ بعد', - }, - MuiRating: { - getLabelText: value => `${value} ستاره`, - }, - MuiAutocomplete: { - clearText: 'پاک‌کردن', - closeText: 'بستن', - loadingText: 'در حال بارگذاری…', - noOptionsText: 'بی‌نتیجه', - openText: 'بازکردن', - }, - }, -};