Skip to content

Commit 7ac22cc

Browse files
committed
Add plural rule
1 parent 5d0eb16 commit 7ac22cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

config/i18n.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ const locales: (Omit<LocaleObjectData, 'code'> & { code: string })[] = [
195195
code: 'cs-CZ',
196196
file: 'cs-CZ.json',
197197
name: 'Čeština',
198+
pluralRule: (choice: number) => {
199+
const name = new Intl.PluralRules('cs-CZ').select(choice)
200+
return { zero: 0, one: 1, two: 0, few: 2, many: 0, other: 3 }[name]
201+
},
198202
},
199203
/*{
200204
code: 'pl-PL',

0 commit comments

Comments
 (0)