-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[locale] Split locales into separate files #46933
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
950e80f
[material-ui][locale] Split locales into separate files
christopherschroer 7f81d5b
Merge branch 'master' into split-locales
christopherschroer b4b8513
Merge branch 'master' into split-locales
christopherschroer 5bf709e
Merge branch 'master' into split-locales
christopherschroer ab20902
[material-ui][locale] Split locales into separate files
christopherschroer 977734e
Update eslint.config.mjs
LukasTy 3f9bd86
[material-ui][locale] Split locales into separate files
christopherschroer da4c34d
Merge branch 'master' into split-locales
christopherschroer 3d7f4cf
Merge branch 'master' into split-locales
LukasTy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import type { Localization } from './utils/LocaleTextApi'; | ||
|
|
||
| export const amET: 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}${selected ? '' : ' ሂድ'}`; | ||
| } | ||
| if (type === 'first') { | ||
| return 'ወደ መጀመሪያው ገጽ ይሂዱ'; | ||
| } | ||
| if (type === 'last') { | ||
| return 'ወደ መጨረሻው ገጽ ይሂዱ'; | ||
| } | ||
| if (type === 'next') { | ||
| return 'ወደ ቀጣዩ ገጽ ይሂዱ'; | ||
| } | ||
| // if (type === 'previous') { | ||
| return 'ወደ ቀዳሚው ገጽ ይሂዱ'; | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import type {Localization} from './utils/LocaleTextApi'; | ||
|
|
||
| export const arEG: 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 'انتقل إلى الصفحة السابقة'; | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import type {Localization} from './utils/LocaleTextApi'; | ||
|
|
||
| export const arSA: 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 'الانتقال إلى الصفحة السابقة'; | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import type {Localization} from './utils/LocaleTextApi'; | ||
|
|
||
| export const arSD: 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 'انتقل إلى الصفحة السابقة'; | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| import {Localization} from './utils/LocaleTextApi'; | ||
|
|
||
| export const azAZ: Localization = { | ||
| components: { | ||
| MuiBreadcrumbs: { | ||
| defaultProps: { | ||
| expandText: 'Yolu göstər', | ||
| }, | ||
| }, | ||
| MuiTablePagination: { | ||
| defaultProps: { | ||
| getItemAriaLabel: (type) => { | ||
| if (type === 'first') { | ||
| return 'Birinci səhifəyə keç'; | ||
| } | ||
| if (type === 'last') { | ||
| return 'Sonuncu səhifəyə keç'; | ||
| } | ||
| if (type === 'next') { | ||
| return 'Növbəti səhifəyə keç'; | ||
| } | ||
| // if (type === 'previous') { | ||
| return 'Əvvəlki səhifəyə keç'; | ||
| }, | ||
| labelRowsPerPage: 'Səhifəyə düşən sətrlər:', | ||
| // labelDisplayedRows: ({ from, to, count }) => | ||
| // `${from}–${to} dən ${count !== -1 ? count : `more than ${to}`}`, | ||
| }, | ||
| }, | ||
| MuiRating: { | ||
| defaultProps: { | ||
| getLabelText: (value) => { | ||
| let pluralForm = 'Ulduz'; | ||
| const lastDigit = value % 10; | ||
|
|
||
| if (lastDigit > 1 && lastDigit < 5) { | ||
| pluralForm = 'Ulduzlar'; | ||
| } | ||
|
|
||
| return `${value} ${pluralForm}`; | ||
| }, | ||
| emptyLabelText: 'Boş', | ||
| }, | ||
| }, | ||
| MuiAutocomplete: { | ||
| defaultProps: { | ||
| clearText: 'Silmək', | ||
| closeText: 'Bağlamaq', | ||
| loadingText: 'Yüklənir…', | ||
| noOptionsText: 'Seçimlər mövcud deyil', | ||
| openText: 'Открыть', | ||
| }, | ||
| }, | ||
| MuiAlert: { | ||
| defaultProps: { | ||
| closeText: 'Bağlamaq', | ||
| }, | ||
| }, | ||
| MuiPagination: { | ||
| defaultProps: { | ||
| 'aria-label': 'Səhifənin naviqasiyası', | ||
| getItemAriaLabel: (type, page, selected) => { | ||
| if (type === 'page') { | ||
| return `${page} ${selected ? 'səhifə' : 'səhifəyə keç'}`; | ||
| } | ||
| if (type === 'first') { | ||
| return 'Birinci səhifəyə keç'; | ||
| } | ||
| if (type === 'last') { | ||
| return 'Sonuncu səhifəyə keç'; | ||
| } | ||
| if (type === 'next') { | ||
| return 'Növbəti səhifəyə keç'; | ||
| } | ||
| // if (type === 'previous') { | ||
| return 'Əvvəlki səhifəyə keç'; | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.