mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:34:57 +08:00
FIX: Use correct plural rules for Russian (#19467)
Previously this didn't work because Transifex didn't support "many".
This commit is contained in:
@ -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';
|
||||
};
|
||||
|
Reference in New Issue
Block a user