feat(i18n): Add Persian translation (#2535)

Co-authored-by: userquin <userquin@gmail.com>
This commit is contained in:
Jafar Farganlooj 2024-03-04 23:29:03 +03:30 committed by GitHub
parent 0c15aa55d8
commit c01a15c930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 728 additions and 0 deletions

View file

@ -88,6 +88,16 @@ const locales: LocaleObjectData[] = [
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
({
code: 'fa-IR',
file: 'fa-IR.json',
name: 'فارسی',
dir: 'rtl',
pluralRule: (choice: number) => {
const name = new Intl.PluralRules('fa-IR').select(choice)
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
{
code: 'ca',
file: 'ca.json',