Skip to content

Commit

Permalink
feat(i18n): refine Russian locale (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov authored Jan 24, 2023
1 parent f1a3c88 commit 897ec00
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 205 deletions.
4 changes: 4 additions & 0 deletions config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading

0 comments on commit 897ec00

Please sign in to comment.