GUAC-1230: Add all messageformat.js locales.

This commit is contained in:
Michael Jumper
2015-07-14 13:20:44 -07:00
parent 7efbaf10c3
commit 8e1d8b8af9
70 changed files with 466 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
MessageFormat.locale.sr = 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';
}
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) ||
((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) {
return 'many';
}
return 'other';
};