mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
FIX: Add missing pluralization rules for Bosnian (#17131)
This commit is contained in:
parent
2eeb50dfc1
commit
1022d8872c
10
lib/javascripts/locale/bs.js
Normal file
10
lib/javascripts/locale/bs.js
Normal 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';
|
||||
};
|
Loading…
Reference in New Issue
Block a user