@formatjs/intl-numberformat 8.8.0 → 8.8.1
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/index.js +4 -1
- package/lib/polyfill-force.js +8 -6
- package/lib/polyfill.js +10 -8
- package/lib/should-polyfill.js +8 -4
- package/lib/src/core.js +56 -52
- package/lib/src/currency-digits.generated.js +4 -1
- package/lib/src/get_internal_slots.js +4 -1
- package/lib/src/numbering-systems.generated.js +4 -1
- package/lib/src/to_locale_string.js +7 -3
- package/lib/src/types.js +2 -1
- package/lib/supported-locales.generated.js +4 -1
- package/package.json +5 -5
- package/polyfill.iife.js +7936 -2417
package/lib/index.js
CHANGED
package/lib/polyfill-force.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var core_1 = require("./src/core");
|
|
4
|
+
var to_locale_string_1 = require("./src/to_locale_string");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
(0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat });
|
|
7
|
+
(0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', {
|
|
6
8
|
value: function toLocaleString(locales, options) {
|
|
7
|
-
return
|
|
9
|
+
return (0, to_locale_string_1.toLocaleString)(this, locales, options);
|
|
8
10
|
},
|
|
9
11
|
});
|
package/lib/polyfill.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var core_1 = require("./src/core");
|
|
4
|
+
var to_locale_string_1 = require("./src/to_locale_string");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
var should_polyfill_1 = require("./should-polyfill");
|
|
7
|
+
if ((0, should_polyfill_1.shouldPolyfill)()) {
|
|
8
|
+
(0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat });
|
|
9
|
+
(0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', {
|
|
8
10
|
value: function toLocaleString(locales, options) {
|
|
9
|
-
return
|
|
11
|
+
return (0, to_locale_string_1.toLocaleString)(this, locales, options);
|
|
10
12
|
},
|
|
11
13
|
});
|
|
12
14
|
}
|
package/lib/should-polyfill.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldPolyfill = void 0;
|
|
4
|
+
var intl_localematcher_1 = require("@formatjs/intl-localematcher");
|
|
5
|
+
var supported_locales_generated_1 = require("./supported-locales.generated");
|
|
3
6
|
/**
|
|
4
7
|
* Check if this is old Node that only supports en
|
|
5
8
|
* @returns
|
|
@@ -41,13 +44,14 @@ function supportedLocalesOf(locale) {
|
|
|
41
44
|
var locales = Array.isArray(locale) ? locale : [locale];
|
|
42
45
|
return Intl.NumberFormat.supportedLocalesOf(locales).length === locales.length;
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
function shouldPolyfill(locale) {
|
|
45
48
|
if (locale === void 0) { locale = 'en'; }
|
|
46
49
|
if (typeof Intl === 'undefined' ||
|
|
47
50
|
!('NumberFormat' in Intl) ||
|
|
48
51
|
!supportsES2020() ||
|
|
49
52
|
onlySupportsEn() ||
|
|
50
53
|
!supportedLocalesOf(locale)) {
|
|
51
|
-
return locale ? match([locale], supportedLocales, 'en') : undefined;
|
|
54
|
+
return locale ? (0, intl_localematcher_1.match)([locale], supported_locales_generated_1.supportedLocales, 'en') : undefined;
|
|
52
55
|
}
|
|
53
56
|
}
|
|
57
|
+
exports.shouldPolyfill = shouldPolyfill;
|
package/lib/src/core.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NumberFormat = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
|
|
6
|
+
var currency_digits_generated_1 = require("./currency-digits.generated");
|
|
7
|
+
var numbering_systems_generated_1 = require("./numbering-systems.generated");
|
|
4
8
|
// eslint-disable-next-line import/no-cycle
|
|
5
|
-
|
|
9
|
+
var get_internal_slots_1 = tslib_1.__importDefault(require("./get_internal_slots"));
|
|
6
10
|
var RESOLVED_OPTIONS_KEYS = [
|
|
7
11
|
'locale',
|
|
8
12
|
'numberingSystem',
|
|
@@ -25,23 +29,23 @@ var RESOLVED_OPTIONS_KEYS = [
|
|
|
25
29
|
/**
|
|
26
30
|
* https://tc39.es/ecma402/#sec-intl-numberformat-constructor
|
|
27
31
|
*/
|
|
28
|
-
|
|
32
|
+
exports.NumberFormat = function (locales, options) {
|
|
29
33
|
// Cannot use `new.target` bc of IE11 & TS transpiles it to something else
|
|
30
|
-
if (!this || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
31
|
-
return new NumberFormat(locales, options);
|
|
34
|
+
if (!this || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
35
|
+
return new exports.NumberFormat(locales, options);
|
|
32
36
|
}
|
|
33
|
-
InitializeNumberFormat(this, locales, options, {
|
|
34
|
-
getInternalSlots:
|
|
35
|
-
localeData: NumberFormat.localeData,
|
|
36
|
-
availableLocales: NumberFormat.availableLocales,
|
|
37
|
-
getDefaultLocale: NumberFormat.getDefaultLocale,
|
|
38
|
-
currencyDigitsData: currencyDigitsData,
|
|
39
|
-
numberingSystemNames: numberingSystemNames,
|
|
37
|
+
(0, ecma402_abstract_1.InitializeNumberFormat)(this, locales, options, {
|
|
38
|
+
getInternalSlots: get_internal_slots_1.default,
|
|
39
|
+
localeData: exports.NumberFormat.localeData,
|
|
40
|
+
availableLocales: exports.NumberFormat.availableLocales,
|
|
41
|
+
getDefaultLocale: exports.NumberFormat.getDefaultLocale,
|
|
42
|
+
currencyDigitsData: currency_digits_generated_1.currencyDigitsData,
|
|
43
|
+
numberingSystemNames: numbering_systems_generated_1.numberingSystemNames,
|
|
40
44
|
});
|
|
41
|
-
var internalSlots =
|
|
45
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
42
46
|
var dataLocale = internalSlots.dataLocale;
|
|
43
|
-
var dataLocaleData = NumberFormat.localeData[dataLocale];
|
|
44
|
-
invariant(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
47
|
+
var dataLocaleData = exports.NumberFormat.localeData[dataLocale];
|
|
48
|
+
(0, ecma402_abstract_1.invariant)(dataLocaleData !== undefined, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
45
49
|
internalSlots.pl = new Intl.PluralRules(dataLocale, {
|
|
46
50
|
minimumFractionDigits: internalSlots.minimumFractionDigits,
|
|
47
51
|
maximumFractionDigits: internalSlots.maximumFractionDigits,
|
|
@@ -52,15 +56,15 @@ export var NumberFormat = function (locales, options) {
|
|
|
52
56
|
return this;
|
|
53
57
|
};
|
|
54
58
|
function formatToParts(x) {
|
|
55
|
-
return FormatNumericToParts(this, toNumeric(x), {
|
|
56
|
-
getInternalSlots:
|
|
59
|
+
return (0, ecma402_abstract_1.FormatNumericToParts)(this, toNumeric(x), {
|
|
60
|
+
getInternalSlots: get_internal_slots_1.default,
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
function formatRange(start, end) {
|
|
60
|
-
return FormatNumericRange(this, start, end, { getInternalSlots:
|
|
64
|
+
return (0, ecma402_abstract_1.FormatNumericRange)(this, start, end, { getInternalSlots: get_internal_slots_1.default });
|
|
61
65
|
}
|
|
62
66
|
function formatRangeToParts(start, end) {
|
|
63
|
-
return FormatNumericRangeToParts(this, start, end, { getInternalSlots:
|
|
67
|
+
return (0, ecma402_abstract_1.FormatNumericRangeToParts)(this, start, end, { getInternalSlots: get_internal_slots_1.default });
|
|
64
68
|
}
|
|
65
69
|
try {
|
|
66
70
|
Object.defineProperty(formatToParts, 'name', {
|
|
@@ -74,21 +78,21 @@ catch (e) {
|
|
|
74
78
|
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
75
79
|
// TypeError: Cannot redefine property: name
|
|
76
80
|
}
|
|
77
|
-
defineProperty(NumberFormat.prototype, 'formatToParts', {
|
|
81
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatToParts', {
|
|
78
82
|
value: formatToParts,
|
|
79
83
|
});
|
|
80
|
-
defineProperty(NumberFormat.prototype, 'formatRange', {
|
|
84
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatRange', {
|
|
81
85
|
value: formatRange,
|
|
82
86
|
});
|
|
83
|
-
defineProperty(NumberFormat.prototype, 'formatRangeToParts', {
|
|
87
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'formatRangeToParts', {
|
|
84
88
|
value: formatRangeToParts,
|
|
85
89
|
});
|
|
86
|
-
defineProperty(NumberFormat.prototype, 'resolvedOptions', {
|
|
90
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat.prototype, 'resolvedOptions', {
|
|
87
91
|
value: function resolvedOptions() {
|
|
88
|
-
if (typeof this !== 'object' || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
92
|
+
if (typeof this !== 'object' || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
89
93
|
throw TypeError('Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver');
|
|
90
94
|
}
|
|
91
|
-
var internalSlots =
|
|
95
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
92
96
|
var ro = {};
|
|
93
97
|
for (var _i = 0, RESOLVED_OPTIONS_KEYS_1 = RESOLVED_OPTIONS_KEYS; _i < RESOLVED_OPTIONS_KEYS_1.length; _i++) {
|
|
94
98
|
var key = RESOLVED_OPTIONS_KEYS_1[_i];
|
|
@@ -113,10 +117,10 @@ var formatDescriptor = {
|
|
|
113
117
|
enumerable: false,
|
|
114
118
|
configurable: true,
|
|
115
119
|
get: function () {
|
|
116
|
-
if (typeof this !== 'object' || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
120
|
+
if (typeof this !== 'object' || !(0, ecma402_abstract_1.OrdinaryHasInstance)(exports.NumberFormat, this)) {
|
|
117
121
|
throw TypeError('Intl.NumberFormat format property accessor called on incompatible receiver');
|
|
118
122
|
}
|
|
119
|
-
var internalSlots =
|
|
123
|
+
var internalSlots = (0, get_internal_slots_1.default)(this);
|
|
120
124
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
121
125
|
var numberFormat = this;
|
|
122
126
|
var boundFormat = internalSlots.boundFormat;
|
|
@@ -161,14 +165,14 @@ catch (e) {
|
|
|
161
165
|
// In older browser (e.g Chrome 36 like polyfill.io)
|
|
162
166
|
// TypeError: Cannot redefine property: name
|
|
163
167
|
}
|
|
164
|
-
Object.defineProperty(NumberFormat.prototype, 'format', formatDescriptor);
|
|
168
|
+
Object.defineProperty(exports.NumberFormat.prototype, 'format', formatDescriptor);
|
|
165
169
|
// Static properties
|
|
166
|
-
defineProperty(NumberFormat, 'supportedLocalesOf', {
|
|
170
|
+
(0, ecma402_abstract_1.defineProperty)(exports.NumberFormat, 'supportedLocalesOf', {
|
|
167
171
|
value: function supportedLocalesOf(locales, options) {
|
|
168
|
-
return SupportedLocales(NumberFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
172
|
+
return (0, ecma402_abstract_1.SupportedLocales)(exports.NumberFormat.availableLocales, (0, ecma402_abstract_1.CanonicalizeLocaleList)(locales), options);
|
|
169
173
|
},
|
|
170
174
|
});
|
|
171
|
-
NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
175
|
+
exports.NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
172
176
|
var data = [];
|
|
173
177
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
174
178
|
data[_i] = arguments[_i];
|
|
@@ -178,17 +182,17 @@ NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
|
178
182
|
var minimizedLocale = new Intl.Locale(locale)
|
|
179
183
|
.minimize()
|
|
180
184
|
.toString();
|
|
181
|
-
NumberFormat.localeData[locale] = NumberFormat.localeData[minimizedLocale] =
|
|
185
|
+
exports.NumberFormat.localeData[locale] = exports.NumberFormat.localeData[minimizedLocale] =
|
|
182
186
|
d;
|
|
183
|
-
NumberFormat.availableLocales.add(minimizedLocale);
|
|
184
|
-
NumberFormat.availableLocales.add(locale);
|
|
185
|
-
if (!NumberFormat.__defaultLocale) {
|
|
186
|
-
NumberFormat.__defaultLocale = minimizedLocale;
|
|
187
|
+
exports.NumberFormat.availableLocales.add(minimizedLocale);
|
|
188
|
+
exports.NumberFormat.availableLocales.add(locale);
|
|
189
|
+
if (!exports.NumberFormat.__defaultLocale) {
|
|
190
|
+
exports.NumberFormat.__defaultLocale = minimizedLocale;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
189
193
|
};
|
|
190
|
-
NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
191
|
-
var _a = NumberFormat.localeData, _b = locale, existingData = _a[_b];
|
|
194
|
+
exports.NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
195
|
+
var _a = exports.NumberFormat.localeData, _b = locale, existingData = _a[_b];
|
|
192
196
|
if (!existingData) {
|
|
193
197
|
throw new Error("Locale data for \"".concat(locale, "\" has not been loaded in NumberFormat. \nPlease __addLocaleData before adding additional unit data"));
|
|
194
198
|
}
|
|
@@ -199,23 +203,23 @@ NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
|
199
203
|
existingData.units.compound[unit] = unitsData.compound[unit];
|
|
200
204
|
}
|
|
201
205
|
};
|
|
202
|
-
NumberFormat.__defaultLocale = '';
|
|
203
|
-
NumberFormat.localeData = {};
|
|
204
|
-
NumberFormat.availableLocales = new Set();
|
|
205
|
-
NumberFormat.getDefaultLocale = function () {
|
|
206
|
-
return NumberFormat.__defaultLocale;
|
|
206
|
+
exports.NumberFormat.__defaultLocale = '';
|
|
207
|
+
exports.NumberFormat.localeData = {};
|
|
208
|
+
exports.NumberFormat.availableLocales = new Set();
|
|
209
|
+
exports.NumberFormat.getDefaultLocale = function () {
|
|
210
|
+
return exports.NumberFormat.__defaultLocale;
|
|
207
211
|
};
|
|
208
|
-
NumberFormat.polyfilled = true;
|
|
212
|
+
exports.NumberFormat.polyfilled = true;
|
|
209
213
|
function toNumeric(val) {
|
|
210
214
|
if (typeof val === 'bigint') {
|
|
211
215
|
return val;
|
|
212
216
|
}
|
|
213
|
-
return ToNumber(val);
|
|
217
|
+
return (0, ecma402_abstract_1.ToNumber)(val);
|
|
214
218
|
}
|
|
215
219
|
try {
|
|
216
220
|
// IE11 does not have Symbol
|
|
217
221
|
if (typeof Symbol !== 'undefined') {
|
|
218
|
-
Object.defineProperty(NumberFormat.prototype, Symbol.toStringTag, {
|
|
222
|
+
Object.defineProperty(exports.NumberFormat.prototype, Symbol.toStringTag, {
|
|
219
223
|
configurable: true,
|
|
220
224
|
enumerable: false,
|
|
221
225
|
writable: false,
|
|
@@ -223,24 +227,24 @@ try {
|
|
|
223
227
|
});
|
|
224
228
|
}
|
|
225
229
|
// https://github.com/tc39/test262/blob/master/test/intl402/NumberFormat/length.js
|
|
226
|
-
Object.defineProperty(NumberFormat.prototype.constructor, 'length', {
|
|
230
|
+
Object.defineProperty(exports.NumberFormat.prototype.constructor, 'length', {
|
|
227
231
|
configurable: true,
|
|
228
232
|
enumerable: false,
|
|
229
233
|
writable: false,
|
|
230
234
|
value: 0,
|
|
231
235
|
});
|
|
232
236
|
// https://github.com/tc39/test262/blob/master/test/intl402/NumberFormat/supportedLocalesOf/length.js
|
|
233
|
-
Object.defineProperty(NumberFormat.supportedLocalesOf, 'length', {
|
|
237
|
+
Object.defineProperty(exports.NumberFormat.supportedLocalesOf, 'length', {
|
|
234
238
|
configurable: true,
|
|
235
239
|
enumerable: false,
|
|
236
240
|
writable: false,
|
|
237
241
|
value: 1,
|
|
238
242
|
});
|
|
239
|
-
Object.defineProperty(NumberFormat, 'prototype', {
|
|
243
|
+
Object.defineProperty(exports.NumberFormat, 'prototype', {
|
|
240
244
|
configurable: false,
|
|
241
245
|
enumerable: false,
|
|
242
246
|
writable: false,
|
|
243
|
-
value: NumberFormat.prototype,
|
|
247
|
+
value: exports.NumberFormat.prototype,
|
|
244
248
|
});
|
|
245
249
|
}
|
|
246
250
|
catch (e) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Type-only circular import
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
4
|
var internalSlotMap = new WeakMap();
|
|
3
|
-
|
|
5
|
+
function getInternalSlots(x) {
|
|
4
6
|
var internalSlots = internalSlotMap.get(x);
|
|
5
7
|
if (!internalSlots) {
|
|
6
8
|
internalSlots = Object.create(null);
|
|
@@ -8,3 +10,4 @@ export default function getInternalSlots(x) {
|
|
|
8
10
|
}
|
|
9
11
|
return internalSlots;
|
|
10
12
|
}
|
|
13
|
+
exports.default = getInternalSlots;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.numberingSystemNames = void 0;
|
|
4
|
+
exports.numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toLocaleString = void 0;
|
|
1
4
|
// eslint-disable-next-line import/no-cycle
|
|
2
|
-
|
|
5
|
+
var core_1 = require("./core");
|
|
3
6
|
/**
|
|
4
7
|
* Number.prototype.toLocaleString ponyfill
|
|
5
8
|
* https://tc39.es/ecma402/#sup-number.prototype.tolocalestring
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
|
-
var numberFormat = new NumberFormat(locales, options);
|
|
10
|
+
function toLocaleString(x, locales, options) {
|
|
11
|
+
var numberFormat = new core_1.NumberFormat(locales, options);
|
|
9
12
|
return numberFormat.format(x);
|
|
10
13
|
}
|
|
14
|
+
exports.toLocaleString = toLocaleString;
|
package/lib/src/types.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedLocales = void 0;
|
|
4
|
+
exports.supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-numberformat",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.1",
|
|
4
4
|
"description": "Ponyfill for ES2020 Intl.NumberFormat",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyfill",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.4.0",
|
|
26
|
-
"@formatjs/
|
|
27
|
-
"@formatjs/
|
|
26
|
+
"@formatjs/ecma402-abstract": "1.17.3",
|
|
27
|
+
"@formatjs/intl-localematcher": "0.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@formatjs/intl-locale": "3.4.0",
|
|
31
30
|
"@formatjs/intl-getcanonicallocales": "2.3.0",
|
|
32
|
-
"@formatjs/intl-
|
|
31
|
+
"@formatjs/intl-locale": "3.4.1",
|
|
32
|
+
"@formatjs/intl-pluralrules": "5.2.8"
|
|
33
33
|
},
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/formatjs/formatjs/issues"
|