feat(i18n): refine Russian locale (#1412)

This commit is contained in:
Svyatoslav Kryukov 2023-01-24 11:27:13 +03:00 committed by GitHub
parent f1a3c8873c
commit 897ec00498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 245 additions and 205 deletions

View file

@ -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',