Skip to content

Commit

Permalink
[l10n] Add Azerbaijan (az-AZ) locale (#18859)
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelmamedov authored and oliviertassinari committed Dec 15, 2019
1 parent ee404d3 commit 4e07461
Show file tree
Hide file tree
Showing 3 changed files with 32 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 @@ -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` |
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
@@ -1,3 +1,4 @@
export const azAZ: object;
export const deDE: object;
export const enUS: object;
export const esES: object;
Expand Down
30 changes: 30 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit 4e07461

Please sign in to comment.