chore(i18n): fix arabic on top to avoid changing contributing guide (#1088)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
Joaquín Sánchez 2023-01-14 11:45:12 +01:00 committed by GitHub
parent 81e24440e7
commit f227ad6e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View file

@ -20,6 +20,16 @@ const locales: LocaleObjectData[] = [
file: 'en-GB.json',
name: 'English (UK)',
},
({
code: 'ar-EG',
file: 'ar-EG.json',
name: 'العربية',
dir: 'rtl',
pluralRule: (choice: number) => {
const name = new Intl.PluralRules('ar-EG').select(choice)
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
{
code: 'de-DE',
file: 'de-DE.json',
@ -72,16 +82,6 @@ const locales: LocaleObjectData[] = [
file: 'cs-CZ.json',
name: 'Česky',
},
({
code: 'ar-EG',
file: 'ar-EG.json',
name: 'العربية',
dir: 'rtl',
pluralRule: (choice: number) => {
const name = new Intl.PluralRules('ar-EG').select(choice)
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
{
code: 'tr-TR',
file: 'tr-TR.json',