Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Add Azerbaijan (az-AZ) locale #18859

Merged
merged 4 commits into from
Dec 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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