We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3b91d0 + 89dcfef commit 3663b44Copy full SHA for 3663b44
1 file changed
src/js/select2/i18n/lt.js
@@ -1,9 +1,12 @@
1
define(function () {
2
- // rules from http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt
+ // rules from
3
+ // http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#lt
4
function ending(count, one, few, other) {
5
if (count % 10 === 1 && (count % 100 < 11 || count % 100 > 19)) {
6
return one;
- } else if ((count % 10 >= 2 && count % 10 <= 9) && (count % 100 < 11 || count % 100 > 19)) {
7
+ } else if (
8
+ (count % 10 >= 2 && count % 10 <= 9) &&
9
+ (count % 100 < 11 || count % 100 > 19)) {
10
return few;
11
} else {
12
return other;
0 commit comments