diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index 49b2ff18a32340..dc5daaf7146602 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -27,6 +27,7 @@ const theme = createMuiTheme({ | Locale | BCP 47 language tag | Import name |:-------|:---------|:---------| +| Azerbaijani | az-AZ | `azAZ` | | Chinese (Simplified) | zh-CN | `zhCN` | | Dutch | nl-NL | `nlNL` | | English (United States) | en-US | `enUS` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index cfa0b2cf076090..fab491e0e8f26a 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -1,3 +1,4 @@ +export const azAZ: object; export const deDE: object; export const enUS: object; export const esES: object; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 3c964aa1f2e7fc..05b54afecc8e13 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -1,3 +1,33 @@ +export const azAZ = { + props: { + MuiTablePagination: { + backIconButtonText: 'Əvvəlki səhifə', + labelRowsPerPage: 'Səhifəyə düşən sətrlər:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} dən ${count}`, + nextIconButtonText: 'Növbəti səhifə', + }, + MuiRating: { + getLabelText: value => { + let pluralForm = 'Ulduz'; + const lastDigit = value % 10; + + if (lastDigit > 1 && lastDigit < 5) { + pluralForm = 'Ulduzlar'; + } + + return `${value} ${pluralForm}`; + }, + }, + MuiAutocomplete: { + clearText: 'Silmək', + closeText: 'Bağlamaq', + loadingText: 'Yüklənir…', + noOptionsText: 'Seçimlər mövcud deyil', + openText: 'Открыть', + }, + }, +}; + export const deDE = { props: { MuiTablePagination: {