Skip to content

Commit

Permalink
feat(i18n): Add central kurdish locale(ckb) (#2332)
Browse files Browse the repository at this point in the history
Co-authored-by: userquin <[email protected]>
  • Loading branch information
qezwan and userquin authored Mar 4, 2024
1 parent c01a15c commit 1c90836
Show file tree
Hide file tree
Showing 2 changed files with 707 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ const locales: LocaleObjectData[] = [
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
({
code: 'ckb',
file: 'ckb.json',
name: 'کوردیی ناوەندی',
dir: 'rtl',
pluralRule: (choice: number) => {
const name = new Intl.PluralRules('ckb').select(choice)
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
({
code: 'fa-IR',
file: 'fa-IR.json',
Expand Down
Loading

0 comments on commit 1c90836

Please sign in to comment.