@formatjs/intl-pluralrules 5.2.16 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/locale-data/scn.js +5 -3
- package/package.json +5 -5
- package/polyfill.iife.js +1 -1
package/locale-data/scn.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* @generated */
|
|
2
2
|
// prettier-ignore
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["many","other"]},"fn":function(n, ord) {
|
|
5
|
-
var
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["many","other"]},"fn":function(n, ord) {
|
|
5
|
+
var _n = String(n), se = _n.split(/[ce]/), e = se[1] || 0, c = e, s = String(e ? Number(se[0]) * Math.pow(10, e) : _n).split("."), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
6
6
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
7
|
-
return n == 1 && v0 ? 'one'
|
|
7
|
+
return n == 1 && v0 ? 'one'
|
|
8
|
+
: e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
|
|
9
|
+
: 'other';
|
|
8
10
|
}},"locale":"scn"})
|
|
9
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-pluralrules",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Polyfill for Intl.PluralRules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyfill",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"tslib": "^2.7.0",
|
|
24
|
-
"@formatjs/
|
|
25
|
-
"@formatjs/
|
|
24
|
+
"@formatjs/intl-localematcher": "0.5.5",
|
|
25
|
+
"@formatjs/ecma402-abstract": "2.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@formatjs/intl-getcanonicallocales": "2.
|
|
29
|
-
"@formatjs/intl-locale": "4.0
|
|
28
|
+
"@formatjs/intl-getcanonicallocales": "2.5.0",
|
|
29
|
+
"@formatjs/intl-locale": "4.2.0"
|
|
30
30
|
},
|
|
31
31
|
"bugs": {
|
|
32
32
|
"url": "https://github.com/formatjs/formatjs/issues"
|
package/polyfill.iife.js
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
}
|
|
187
187
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
188
188
|
|
|
189
|
-
// node_modules/.aspect_rules_js/tslib@2.
|
|
189
|
+
// node_modules/.aspect_rules_js/tslib@2.8.0/node_modules/tslib/tslib.es6.mjs
|
|
190
190
|
var extendStatics = function(d, b) {
|
|
191
191
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
192
192
|
d2.__proto__ = b2;
|