discourse/lib/javascripts/locale/sl.js

13 lines
218 B
JavaScript
Raw Normal View History

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';
};