i18n-dialect
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -94,3 +94,3 @@ "use strict"; | ||
: this.defaultPluralSelect(descriptor.factor); | ||
return forms[formIndex]; | ||
return forms[formIndex + 0]; // explicit cast to number; some gettext formulas may return just true/false - that's bad. | ||
} | ||
@@ -97,0 +97,0 @@ }; |
{ | ||
"name": "i18n-dialect", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Internationalization support library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -112,3 +112,3 @@ import { | ||
: this.defaultPluralSelect(descriptor.factor); | ||
return forms[formIndex]; | ||
return forms[formIndex + 0]; // explicit cast to number; some gettext formulas may return just true/false - that's bad. | ||
} | ||
@@ -115,0 +115,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183918