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 Central Kurdish (ku-CKB) locale #36592

Merged
merged 1 commit into from
Mar 21, 2023
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/data/material/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The [Data Grid and Data Grid Pro](/x/react-data-grid/) components have their own
| Khmer | kh-KH | `khKH` |
| Kazakh | kk-KZ | `kkKZ` |
| Korean | ko-KR | `koKR` |
| Kurdish (Central) | ku-CKB | `kuCKB` |
| Macedonian | mk-MK | `mkMK` |
| Norwegian (bokmål) | nb-NO | `nbNO` |
| Persian | fa-IR | `faIR` |
Expand Down
71 changes: 71 additions & 0 deletions packages/mui-material/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,77 @@ export const koKR: Localization = {
},
};

export const kuCKB: Localization = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'ڕێچکە پیشان بدە',
},
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: (type) => {
if (type === 'first') {
return 'چوونە یەکەم پەڕە';
}
if (type === 'last') {
return 'چوونە کۆتا پەڕە';
}
if (type === 'next') {
return 'چوونە پەڕەی دواتر';
}
// if (type === 'previous') {
return 'گەڕانەوە بۆ پەڕەی پێشوو';
},
labelRowsPerPage: 'ژمارەی ڕیزەکان لە هەر پەڕەیەک:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}–${to} لە ${count !== -1 ? count : ` زیاترە لە${to}`}`,
},
},
MuiRating: {
defaultProps: {
getLabelText: (value) => `${value} ${value !== 1 ? 'ئەستێرەکان' : 'ئەستێرە'}`,
emptyLabelText: 'خاڵیە',
},
},
MuiAutocomplete: {
defaultProps: {
clearText: 'سڕینەوە',
closeText: 'داخستن',
loadingText: 'لە بارکردندایە...',
noOptionsText: 'هیچ بژاردەیەک نیە',
openText: 'کردنەوە',
},
},
MuiAlert: {
defaultProps: {
closeText: 'داخستن',
},
},
MuiPagination: {
defaultProps: {
'aria-label': 'گەڕان لە پەڕەکان',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'چوون بۆ '} پەڕەی ${page}`;
}
if (type === 'first') {
return 'چوونە یەکەم پەڕە';
}
if (type === 'last') {
return 'چوونە کۆتا پەڕە';
}
if (type === 'next') {
return 'چوونە پەڕەی دواتر';
}
// if (type === 'previous') {
return 'گەڕانەوە بۆ پەڕەی پێشوو';
},
},
},
},
};

export const kuLatn: Localization = {
components: {
MuiBreadcrumbs: {
Expand Down