intl-pluralrules
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "intl-pluralrules", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Intl.PluralRules polyfill", | ||
@@ -39,12 +39,12 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.3", | ||
"@babel/core": "^7.4.3", | ||
"@babel/preset-env": "^7.4.3", | ||
"jest": "^24.7.1" | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/preset-env": "^7.4.5", | ||
"jest": "^24.8.0" | ||
}, | ||
"scripts": { | ||
"build": "babel -d . src/ --ignore '**/*.test.js'", | ||
"prepublishOnly": "npm test", | ||
"prepublishOnly": "npm test && npm run build", | ||
"test": "jest" | ||
} | ||
} |
@@ -111,3 +111,4 @@ "use strict"; | ||
if ((typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) === 'object' && Intl.NumberFormat) { | ||
this._nf = new Intl.NumberFormat(this._locale, opt); | ||
// make-plural expects latin digits with . decimal separator | ||
this._nf = new Intl.NumberFormat('en', opt); | ||
} else { | ||
@@ -114,0 +115,0 @@ var minID = opt.minimumIntegerDigits, |
10416
173