FIX: Use correct plural rules for Russian (#19467)

Previously this didn't work because Transifex didn't support "many".
This commit is contained in:
Gerhard Schlager
2022-12-14 18:56:46 +01:00
committed by GitHub
parent f77660b047
commit 4e42759caa
4 changed files with 13 additions and 7 deletions

View File

@ -7,5 +7,10 @@ MessageFormat.locale.ru = function (n) {
if (r10 >= 2 && r10 <= 4 && (r100 < 12 || r100 > 14) && n == Math.floor(n))
return 'few';
if (r10 === 0 || (r10 >= 5 && r10 <= 9) ||
(r100 >= 11 && r100 <= 14) && n == Math.floor(n)) {
return 'many';
}
return 'other';
};