Skip to content

Commit

Permalink
update the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 22, 2019
1 parent 3b8c5cd commit ed45354
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
3 changes: 2 additions & 1 deletion docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
42 changes: 21 additions & 21 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: 'بازکردن',
},
},
};

0 comments on commit ed45354

Please sign in to comment.