FIX: Add missing pluralization rules for Bosnian (#17131)

This commit is contained in:
Gerhard Schlager 2022-06-18 00:17:15 +02:00 committed by GitHub
parent 2eeb50dfc1
commit 1022d8872c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
MessageFormat.locale.bs = function (n) {
if ((n % 10) == 1 && (n % 100) != 11) {
return 'one';
}
if ((n % 10) >= 2 && (n % 10) <= 4 &&
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
return 'few';
}
return 'other';
};