feat(i18n): Add Persian translation (#2535)
Co-authored-by: userquin <userquin@gmail.com>
This commit is contained in:
parent
0c15aa55d8
commit
c01a15c930
2 changed files with 728 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue