discourse/lib/javascripts/locale/sl.js

Failed to ignore revisions in .git-blame-ignore-revs.

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