1
0
mirror of synced 2024-11-22 04:56:08 +03:00

linting fix for lt i18n file

This commit is contained in:
Maarten Brouwers 2016-05-03 00:08:06 +02:00
parent f3b91d0680
commit 89dcfef94b

View File

@ -1,9 +1,12 @@
define(function () {
// rules from http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt
// rules from
// http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt
function ending(count, one, few, other) {
if (count % 10 === 1 && (count % 100 < 11 || count % 100 > 19)) {
return one;
} else if ((count % 10 >= 2 && count % 10 <= 9) && (count % 100 < 11 || count % 100 > 19)) {
} else if (
(count % 10 >= 2 && count % 10 <= 9) &&
(count % 100 < 11 || count % 100 > 19)) {
return few;
} else {
return other;