mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-10-23 03:06:43 +03:00
fix: pluralization logic in i18n.ts for "ru" (#1537)
This commit is contained in:
parent
e8c5e04161
commit
bd60cb72e5
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ export default createI18n({
|
|||
}
|
||||
const teen = choice > 10 && choice < 20
|
||||
const endsWithOne = choice % 10 === 1
|
||||
if (choicesLength == 2) {
|
||||
return choice === 1 ? 0 : 1
|
||||
}
|
||||
if (choicesLength < 4) {
|
||||
return !teen && endsWithOne ? 1 : 2
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue