feat(i18n): refine Russian locale (#1412)
This commit is contained in:
parent
f1a3c8873c
commit
897ec00498
2 changed files with 245 additions and 205 deletions
|
@ -64,6 +64,10 @@ const locales: LocaleObjectData[] = [
|
|||
code: 'ru-RU',
|
||||
file: 'ru-RU.json',
|
||||
name: 'Русский',
|
||||
pluralRule: (choice: number) => {
|
||||
const name = new Intl.PluralRules('ru-RU').select(choice)
|
||||
return { zero: 2 /* not used */, one: 0, two: 1 /* not used */, few: 1, many: 2, other: 3 }[name]
|
||||
},
|
||||
},
|
||||
{
|
||||
code: 'uk-UA',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue