@formatjs/intl-pluralrules 4.2.0 → 4.3.2
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/lib/supported-locales.d.ts.map +1 -1
- package/lib/supported-locales.js +1 -1
- package/locale-data/{in.d.ts → bal.d.ts} +0 -0
- package/locale-data/bal.js +7 -0
- package/locale-data/es.js +5 -2
- package/locale-data/{iw.d.ts → hnj.d.ts} +0 -0
- package/locale-data/{in.js → hnj.js} +1 -1
- package/locale-data/it.js +5 -3
- package/locale-data/pt-PT.js +5 -3
- package/locale-data/pt.js +5 -3
- package/locale-data/{ji.d.ts → tpi.d.ts} +0 -0
- package/locale-data/tpi.js +7 -0
- package/locale-data/und.d.ts +1 -0
- package/locale-data/und.js +7 -0
- package/package.json +3 -3
- package/polyfill.iife.js +51 -129
- package/supported-locales.d.ts.map +1 -1
- package/supported-locales.js +1 -1
- package/locale-data/iw.js +0 -12
- package/locale-data/ji.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqoC,CAAA"}
|
package/lib/supported-locales.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is generated from supported-locales-gen.ts
|
|
2
|
-
export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "
|
|
2
|
+
export var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["one","other"]},"fn":function(n, ord) {
|
|
5
|
+
return n == 1 ? 'one' : 'other';
|
|
6
|
+
}},"locale":"bal"})
|
|
7
|
+
}
|
package/locale-data/es.js
CHANGED
|
@@ -1,8 +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":["other"]},"fn":function(n, ord) {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["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);
|
|
5
6
|
if (ord) return 'other';
|
|
6
|
-
return n == 1 ? 'one'
|
|
7
|
+
return n == 1 ? 'one'
|
|
8
|
+
: e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
|
|
9
|
+
: 'other';
|
|
7
10
|
}},"locale":"es"})
|
|
8
11
|
}
|
|
File without changes
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
4
|
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
5
|
return 'other';
|
|
6
|
-
}},"locale":"
|
|
6
|
+
}},"locale":"hnj"})
|
|
7
7
|
}
|
package/locale-data/it.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":"it"})
|
|
9
11
|
}
|
package/locale-data/pt-PT.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":["other"]},"fn":function(n, ord) {
|
|
5
|
-
var
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["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 '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":"pt-PT"})
|
|
9
11
|
}
|
package/locale-data/pt.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":["other"]},"fn":function(n, ord) {
|
|
5
|
-
var
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","many","other"],"ordinal":["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 'other';
|
|
7
|
-
return (i == 0 || i == 1) ? 'one'
|
|
7
|
+
return (i == 0 || i == 1) ? 'one'
|
|
8
|
+
: e == 0 && i != 0 && i1000000 == 0 && v0 || (e < 0 || e > 5) ? 'many'
|
|
9
|
+
: 'other';
|
|
8
10
|
}},"locale":"pt"})
|
|
9
11
|
}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
return 'other';
|
|
6
|
+
}},"locale":"tpi"})
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
+
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
+
return 'other';
|
|
6
|
+
}},"locale":"und"})
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-pluralrules",
|
|
3
|
-
"version": "4.2
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Polyfill for Intl.PluralRules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyfill",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "git+https://github.com/formatjs/formatjs.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@formatjs/ecma402-abstract": "1.11.
|
|
24
|
-
"@formatjs/intl-localematcher": "0.2.
|
|
23
|
+
"@formatjs/ecma402-abstract": "1.11.3",
|
|
24
|
+
"@formatjs/intl-localematcher": "0.2.24",
|
|
25
25
|
"tslib": "^2.1.0"
|
|
26
26
|
},
|
|
27
27
|
"bugs": {
|
package/polyfill.iife.js
CHANGED
|
@@ -10,26 +10,39 @@
|
|
|
10
10
|
};
|
|
11
11
|
var __commonJS = function(cb, mod) {
|
|
12
12
|
return function __require() {
|
|
13
|
-
return mod || (0, cb[
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
var __reExport = function(target, module, desc) {
|
|
16
|
+
var __reExport = function(target, module, copyDefault, desc) {
|
|
17
17
|
if (module && typeof module === "object" || typeof module === "function")
|
|
18
18
|
for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
|
|
19
19
|
key = keys[i];
|
|
20
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
20
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
21
21
|
__defProp(target, key, { get: function(k) {
|
|
22
22
|
return module[k];
|
|
23
23
|
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
|
24
24
|
}
|
|
25
25
|
return target;
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default",
|
|
27
|
+
var __toESM = function(module, isNodeMode) {
|
|
28
|
+
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: function() {
|
|
29
29
|
return module.default;
|
|
30
30
|
}, enumerable: true } : { value: module, enumerable: true })), module);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
34
|
+
var require_CanonicalizeLocaleList = __commonJS({
|
|
35
|
+
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/CanonicalizeLocaleList.js": function(exports) {
|
|
36
|
+
"use strict";
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CanonicalizeLocaleList = void 0;
|
|
39
|
+
function CanonicalizeLocaleList2(locales) {
|
|
40
|
+
return Intl.getCanonicalLocales(locales);
|
|
41
|
+
}
|
|
42
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList2;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
33
46
|
// bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js
|
|
34
47
|
var require_utils = __commonJS({
|
|
35
48
|
"bazel-out/darwin-fastbuild/bin/packages/intl-localematcher/abstract/utils.js": function(exports) {
|
|
@@ -113,15 +126,19 @@
|
|
|
113
126
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
114
127
|
var utils_1 = require_utils();
|
|
115
128
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
116
|
-
var minimizedAvailableLocaleMap =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var minimizedAvailableLocales = new Set();
|
|
129
|
+
var minimizedAvailableLocaleMap = {};
|
|
130
|
+
var availableLocaleMap = {};
|
|
131
|
+
var canonicalizedLocaleMap = {};
|
|
132
|
+
var minimizedAvailableLocales = /* @__PURE__ */ new Set();
|
|
121
133
|
availableLocales.forEach(function(locale2) {
|
|
122
134
|
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|
|
135
|
+
var canonicalizedLocale = Intl.getCanonicalLocales(locale2)[0] || locale2;
|
|
123
136
|
minimizedAvailableLocaleMap[minimizedLocale] = locale2;
|
|
137
|
+
availableLocaleMap[locale2] = locale2;
|
|
138
|
+
canonicalizedLocaleMap[canonicalizedLocale] = locale2;
|
|
124
139
|
minimizedAvailableLocales.add(minimizedLocale);
|
|
140
|
+
minimizedAvailableLocales.add(locale2);
|
|
141
|
+
minimizedAvailableLocales.add(canonicalizedLocale);
|
|
125
142
|
});
|
|
126
143
|
var foundLocale;
|
|
127
144
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -147,8 +164,11 @@
|
|
|
147
164
|
}
|
|
148
165
|
foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
149
166
|
}
|
|
167
|
+
if (!foundLocale) {
|
|
168
|
+
return { locale: getDefaultLocale() };
|
|
169
|
+
}
|
|
150
170
|
return {
|
|
151
|
-
locale: foundLocale
|
|
171
|
+
locale: availableLocaleMap[foundLocale] || canonicalizedLocaleMap[foundLocale] || minimizedAvailableLocaleMap[foundLocale] || foundLocale
|
|
152
172
|
};
|
|
153
173
|
}
|
|
154
174
|
exports.BestFitMatcher = BestFitMatcher;
|
|
@@ -213,7 +233,7 @@
|
|
|
213
233
|
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
214
234
|
var utils_1 = require_utils();
|
|
215
235
|
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
216
|
-
function
|
|
236
|
+
function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
217
237
|
var matcher = options.localeMatcher;
|
|
218
238
|
var r;
|
|
219
239
|
if (matcher === "lookup") {
|
|
@@ -275,7 +295,7 @@
|
|
|
275
295
|
result.locale = foundLocale;
|
|
276
296
|
return result;
|
|
277
297
|
}
|
|
278
|
-
exports.ResolveLocale =
|
|
298
|
+
exports.ResolveLocale = ResolveLocale2;
|
|
279
299
|
}
|
|
280
300
|
});
|
|
281
301
|
|
|
@@ -309,13 +329,14 @@
|
|
|
309
329
|
"use strict";
|
|
310
330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
311
331
|
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
|
|
332
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
312
333
|
var ResolveLocale_1 = require_ResolveLocale();
|
|
313
334
|
function match2(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
314
335
|
var locales = availableLocales.reduce(function(all, l) {
|
|
315
336
|
all.add(l);
|
|
316
337
|
return all;
|
|
317
|
-
}, new Set());
|
|
318
|
-
return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
|
|
338
|
+
}, /* @__PURE__ */ new Set());
|
|
339
|
+
return (0, ResolveLocale_1.ResolveLocale)(locales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
|
|
319
340
|
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
320
341
|
}, [], {}, function() {
|
|
321
342
|
return defaultLocale;
|
|
@@ -334,25 +355,6 @@
|
|
|
334
355
|
});
|
|
335
356
|
|
|
336
357
|
// node_modules/tslib/tslib.es6.js
|
|
337
|
-
var extendStatics = function(d, b) {
|
|
338
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
339
|
-
d2.__proto__ = b2;
|
|
340
|
-
} || function(d2, b2) {
|
|
341
|
-
for (var p in b2)
|
|
342
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
343
|
-
d2[p] = b2[p];
|
|
344
|
-
};
|
|
345
|
-
return extendStatics(d, b);
|
|
346
|
-
};
|
|
347
|
-
function __extends(d, b) {
|
|
348
|
-
if (typeof b !== "function" && b !== null)
|
|
349
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
350
|
-
extendStatics(d, b);
|
|
351
|
-
function __() {
|
|
352
|
-
this.constructor = d;
|
|
353
|
-
}
|
|
354
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
355
|
-
}
|
|
356
358
|
function __spreadArray(to, from, pack) {
|
|
357
359
|
if (pack || arguments.length === 2)
|
|
358
360
|
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
@@ -362,7 +364,7 @@
|
|
|
362
364
|
ar[i] = from[i];
|
|
363
365
|
}
|
|
364
366
|
}
|
|
365
|
-
return to.concat(ar || from);
|
|
367
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
366
368
|
}
|
|
367
369
|
|
|
368
370
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeLocaleList.js
|
|
@@ -445,7 +447,7 @@
|
|
|
445
447
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js
|
|
446
448
|
function CoerceOptionsToObject(options) {
|
|
447
449
|
if (typeof options === "undefined") {
|
|
448
|
-
return Object.create(null);
|
|
450
|
+
return /* @__PURE__ */ Object.create(null);
|
|
449
451
|
}
|
|
450
452
|
return ToObject(options);
|
|
451
453
|
}
|
|
@@ -494,57 +496,6 @@
|
|
|
494
496
|
return fallback;
|
|
495
497
|
}
|
|
496
498
|
|
|
497
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
498
|
-
var SANCTIONED_UNITS = [
|
|
499
|
-
"angle-degree",
|
|
500
|
-
"area-acre",
|
|
501
|
-
"area-hectare",
|
|
502
|
-
"concentr-percent",
|
|
503
|
-
"digital-bit",
|
|
504
|
-
"digital-byte",
|
|
505
|
-
"digital-gigabit",
|
|
506
|
-
"digital-gigabyte",
|
|
507
|
-
"digital-kilobit",
|
|
508
|
-
"digital-kilobyte",
|
|
509
|
-
"digital-megabit",
|
|
510
|
-
"digital-megabyte",
|
|
511
|
-
"digital-petabyte",
|
|
512
|
-
"digital-terabit",
|
|
513
|
-
"digital-terabyte",
|
|
514
|
-
"duration-day",
|
|
515
|
-
"duration-hour",
|
|
516
|
-
"duration-millisecond",
|
|
517
|
-
"duration-minute",
|
|
518
|
-
"duration-month",
|
|
519
|
-
"duration-second",
|
|
520
|
-
"duration-week",
|
|
521
|
-
"duration-year",
|
|
522
|
-
"length-centimeter",
|
|
523
|
-
"length-foot",
|
|
524
|
-
"length-inch",
|
|
525
|
-
"length-kilometer",
|
|
526
|
-
"length-meter",
|
|
527
|
-
"length-mile-scandinavian",
|
|
528
|
-
"length-mile",
|
|
529
|
-
"length-millimeter",
|
|
530
|
-
"length-yard",
|
|
531
|
-
"mass-gram",
|
|
532
|
-
"mass-kilogram",
|
|
533
|
-
"mass-ounce",
|
|
534
|
-
"mass-pound",
|
|
535
|
-
"mass-stone",
|
|
536
|
-
"temperature-celsius",
|
|
537
|
-
"temperature-fahrenheit",
|
|
538
|
-
"volume-fluid-ounce",
|
|
539
|
-
"volume-gallon",
|
|
540
|
-
"volume-liter",
|
|
541
|
-
"volume-milliliter"
|
|
542
|
-
];
|
|
543
|
-
function removeUnitNamespace(unit) {
|
|
544
|
-
return unit.slice(unit.indexOf("-") + 1);
|
|
545
|
-
}
|
|
546
|
-
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
547
|
-
|
|
548
499
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
|
|
549
500
|
function getMagnitude(x) {
|
|
550
501
|
return Math.floor(Math.log(x) * Math.LOG10E);
|
|
@@ -702,16 +653,6 @@
|
|
|
702
653
|
return { roundedNumber: x, formattedString: string };
|
|
703
654
|
}
|
|
704
655
|
|
|
705
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
|
|
706
|
-
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
707
|
-
|
|
708
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
709
|
-
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
710
|
-
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
711
|
-
|
|
712
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
|
|
713
|
-
var import_intl_localematcher = __toModule(require_intl_localematcher());
|
|
714
|
-
|
|
715
656
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
|
|
716
657
|
function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
717
658
|
var mnid = GetNumberOption(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
@@ -743,7 +684,7 @@
|
|
|
743
684
|
}
|
|
744
685
|
|
|
745
686
|
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
|
|
746
|
-
var
|
|
687
|
+
var import_intl_localematcher = __toESM(require_intl_localematcher());
|
|
747
688
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
748
689
|
var matcher = "best fit";
|
|
749
690
|
if (options !== void 0) {
|
|
@@ -751,36 +692,17 @@
|
|
|
751
692
|
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
752
693
|
}
|
|
753
694
|
if (matcher === "best fit") {
|
|
754
|
-
return (0,
|
|
695
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
755
696
|
}
|
|
756
|
-
return (0,
|
|
697
|
+
return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
|
|
757
698
|
}
|
|
758
699
|
|
|
759
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
|
|
760
|
-
var MissingLocaleDataError = function(_super) {
|
|
761
|
-
__extends(MissingLocaleDataError2, _super);
|
|
762
|
-
function MissingLocaleDataError2() {
|
|
763
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
764
|
-
_this.type = "MISSING_LOCALE_DATA";
|
|
765
|
-
return _this;
|
|
766
|
-
}
|
|
767
|
-
return MissingLocaleDataError2;
|
|
768
|
-
}(Error);
|
|
769
|
-
|
|
770
|
-
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
|
|
771
|
-
var RangePatternType;
|
|
772
|
-
(function(RangePatternType2) {
|
|
773
|
-
RangePatternType2["startRange"] = "startRange";
|
|
774
|
-
RangePatternType2["shared"] = "shared";
|
|
775
|
-
RangePatternType2["endRange"] = "endRange";
|
|
776
|
-
})(RangePatternType || (RangePatternType = {}));
|
|
777
|
-
|
|
778
700
|
// bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/abstract/InitializePluralRules.js
|
|
779
|
-
var
|
|
701
|
+
var import_intl_localematcher2 = __toESM(require_intl_localematcher());
|
|
780
702
|
function InitializePluralRules(pl, locales, options, _a) {
|
|
781
703
|
var availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale, getInternalSlots2 = _a.getInternalSlots;
|
|
782
704
|
var requestedLocales = CanonicalizeLocaleList(locales);
|
|
783
|
-
var opt = Object.create(null);
|
|
705
|
+
var opt = /* @__PURE__ */ Object.create(null);
|
|
784
706
|
var opts = CoerceOptionsToObject(options);
|
|
785
707
|
var internalSlots = getInternalSlots2(pl);
|
|
786
708
|
internalSlots.initializedPluralRules = true;
|
|
@@ -788,7 +710,7 @@
|
|
|
788
710
|
opt.localeMatcher = matcher;
|
|
789
711
|
internalSlots.type = GetOption(opts, "type", "string", ["cardinal", "ordinal"], "cardinal");
|
|
790
712
|
SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, "standard");
|
|
791
|
-
var r = (0,
|
|
713
|
+
var r = (0, import_intl_localematcher2.ResolveLocale)(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
|
792
714
|
internalSlots.locale = r.locale;
|
|
793
715
|
return pl;
|
|
794
716
|
}
|
|
@@ -852,11 +774,11 @@
|
|
|
852
774
|
}
|
|
853
775
|
|
|
854
776
|
// bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/get_internal_slots.js
|
|
855
|
-
var internalSlotMap = new WeakMap();
|
|
777
|
+
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
856
778
|
function getInternalSlots(x) {
|
|
857
779
|
var internalSlots = internalSlotMap.get(x);
|
|
858
780
|
if (!internalSlots) {
|
|
859
|
-
internalSlots = Object.create(null);
|
|
781
|
+
internalSlots = /* @__PURE__ */ Object.create(null);
|
|
860
782
|
internalSlotMap.set(x, internalSlots);
|
|
861
783
|
}
|
|
862
784
|
return internalSlots;
|
|
@@ -888,7 +810,7 @@
|
|
|
888
810
|
}
|
|
889
811
|
PluralRules2.prototype.resolvedOptions = function() {
|
|
890
812
|
validateInstance(this, "resolvedOptions");
|
|
891
|
-
var opts = Object.create(null);
|
|
813
|
+
var opts = /* @__PURE__ */ Object.create(null);
|
|
892
814
|
var internalSlots = getInternalSlots(this);
|
|
893
815
|
opts.locale = internalSlots.locale;
|
|
894
816
|
opts.type = internalSlots.type;
|
|
@@ -937,7 +859,7 @@
|
|
|
937
859
|
return PluralRules2.__defaultLocale;
|
|
938
860
|
};
|
|
939
861
|
PluralRules2.localeData = {};
|
|
940
|
-
PluralRules2.availableLocales = new Set();
|
|
862
|
+
PluralRules2.availableLocales = /* @__PURE__ */ new Set();
|
|
941
863
|
PluralRules2.__defaultLocale = "";
|
|
942
864
|
PluralRules2.relevantExtensionKeys = [];
|
|
943
865
|
PluralRules2.polyfilled = true;
|
|
@@ -977,10 +899,10 @@
|
|
|
977
899
|
}
|
|
978
900
|
|
|
979
901
|
// bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
|
|
980
|
-
var
|
|
902
|
+
var import_intl_localematcher3 = __toESM(require_intl_localematcher());
|
|
981
903
|
|
|
982
904
|
// bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/supported-locales.js
|
|
983
|
-
var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "
|
|
905
|
+
var supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
|
|
984
906
|
|
|
985
907
|
// bazel-out/darwin-fastbuild/bin/packages/intl-pluralrules/lib/should-polyfill.js
|
|
986
908
|
function supportedLocalesOf(locale) {
|
|
@@ -995,7 +917,7 @@
|
|
|
995
917
|
locale = "en";
|
|
996
918
|
}
|
|
997
919
|
if (!("PluralRules" in Intl) || new Intl.PluralRules("en", { minimumFractionDigits: 2 }).select(1) === "one" || !supportedLocalesOf(locale)) {
|
|
998
|
-
return locale ? (0,
|
|
920
|
+
return locale ? (0, import_intl_localematcher3.match)([locale], supportedLocales, "en") : void 0;
|
|
999
921
|
}
|
|
1000
922
|
}
|
|
1001
923
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-pluralrules/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAqoC,CAAA"}
|
package/supported-locales.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.supportedLocales = void 0;
|
|
4
4
|
// This file is generated from supported-locales-gen.ts
|
|
5
|
-
exports.supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "
|
|
5
|
+
exports.supportedLocales = ["af", "ak", "am", "an", "ar", "ars", "as", "asa", "ast", "az", "bal", "be", "bem", "bez", "bg", "bho", "bm", "bn", "bo", "br", "brx", "bs", "ca", "ce", "ceb", "cgg", "chr", "ckb", "cs", "cy", "da", "de", "doi", "dsb", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fil", "fo", "fr", "fur", "fy", "ga", "gd", "gl", "gsw", "gu", "guw", "gv", "ha", "haw", "he", "hi", "hnj", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "io", "is", "it", "iu", "ja", "jbo", "jgo", "jmc", "jv", "jw", "ka", "kab", "kaj", "kcg", "kde", "kea", "kk", "kkj", "kl", "km", "kn", "ko", "ks", "ksb", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lij", "lkt", "ln", "lo", "lt", "lv", "mas", "mg", "mgo", "mk", "ml", "mn", "mo", "mr", "ms", "mt", "my", "nah", "naq", "nb", "nd", "ne", "nl", "nn", "nnh", "no", "nqo", "nr", "nso", "ny", "nyn", "om", "or", "os", "osa", "pa", "pap", "pcm", "pl", "prg", "ps", "pt-PT", "pt", "rm", "ro", "rof", "ru", "rwk", "sah", "saq", "sat", "sc", "scn", "sd", "sdh", "se", "seh", "ses", "sg", "sh", "shi", "si", "sk", "sl", "sma", "smi", "smj", "smn", "sms", "sn", "so", "sq", "sr", "ss", "ssy", "st", "su", "sv", "sw", "syr", "ta", "te", "teo", "th", "ti", "tig", "tk", "tl", "tn", "to", "tpi", "tr", "ts", "tzm", "ug", "uk", "und", "ur", "uz", "ve", "vi", "vo", "vun", "wa", "wae", "wo", "xh", "xog", "yi", "yo", "yue", "zh", "zu"];
|
package/locale-data/iw.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* @generated */
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","two","many","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
-
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
6
|
-
if (ord) return 'other';
|
|
7
|
-
return n == 1 && v0 ? 'one'
|
|
8
|
-
: i == 2 && v0 ? 'two'
|
|
9
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
10
|
-
: 'other';
|
|
11
|
-
}},"locale":"iw"})
|
|
12
|
-
}
|
package/locale-data/ji.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* @generated */
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
|
|
4
|
-
Intl.PluralRules.__addLocaleData({"data":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
|
|
5
|
-
var s = String(n).split('.'), v0 = !s[1];
|
|
6
|
-
if (ord) return 'other';
|
|
7
|
-
return n == 1 && v0 ? 'one' : 'other';
|
|
8
|
-
}},"locale":"ji"})
|
|
9
|
-
}
|