mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 06:22:31 -05:00
8874c9ea75
Add message about new and unread topics at the bottom of topics move localization helper into lib
12 lines
218 B
JavaScript
12 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';
|
|
};
|