mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:03:38 +08:00
13 lines
218 B
JavaScript
13 lines
218 B
JavaScript
|
MessageFormat.locale.sl = function (n) {
|
||
|
if ((n % 100) == 1) {
|
||
|
return 'one';
|
||
|
}
|
||
|
if ((n % 100) == 2) {
|
||
|
return 'two';
|
||
|
}
|
||
|
if ((n % 100) == 3 || (n % 100) == 4) {
|
||
|
return 'few';
|
||
|
}
|
||
|
return 'other';
|
||
|
};
|