react-intl 5.22.0 → 5.23.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.
@@ -20,7 +20,7 @@ export default function injectIntl(WrappedComponent, options) {
20
20
  var intlProp = (_a = {}, _a[intlPropName] = intl, _a);
21
21
  return (React.createElement(WrappedComponent, __assign({}, props, intlProp, { ref: forwardRef ? props.forwardedRef : null })));
22
22
  })); };
23
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
23
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
24
24
  WithIntl.WrappedComponent = WrappedComponent;
25
25
  if (forwardRef) {
26
26
  return hoistNonReactStatics(React.forwardRef(function (props, ref) { return (React.createElement(WithIntl, __assign({}, props, { forwardedRef: ref }))); }), WrappedComponent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "5.22.0",
3
+ "version": "5.23.0",
4
4
  "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
5
5
  "keywords": [
6
6
  "intl",
@@ -128,20 +128,20 @@
128
128
  "types": "index.d.ts",
129
129
  "sideEffects": false,
130
130
  "dependencies": {
131
- "@formatjs/ecma402-abstract": "1.10.0",
132
- "@formatjs/icu-messageformat-parser": "2.0.14",
133
- "@formatjs/intl": "1.16.0",
134
- "@formatjs/intl-displaynames": "5.2.5",
135
- "@formatjs/intl-listformat": "6.3.5",
131
+ "@formatjs/ecma402-abstract": "1.11.0",
132
+ "@formatjs/icu-messageformat-parser": "2.0.15",
133
+ "@formatjs/intl": "1.17.0",
134
+ "@formatjs/intl-displaynames": "5.2.6",
135
+ "@formatjs/intl-listformat": "6.3.6",
136
136
  "@types/hoist-non-react-statics": "^3.3.1",
137
137
  "@types/react": "16 || 17",
138
138
  "hoist-non-react-statics": "^3.3.2",
139
- "intl-messageformat": "9.9.6",
139
+ "intl-messageformat": "9.10.0",
140
140
  "tslib": "^2.1.0"
141
141
  },
142
142
  "peerDependencies": {
143
143
  "react": "^16.3.0 || 17",
144
- "typescript": "^4.4"
144
+ "typescript": "^4.5"
145
145
  },
146
146
  "peerDependenciesMeta": {
147
147
  "typescript": {
@@ -435,7 +435,7 @@ var ReactIntl = (function() {
435
435
  function UnicodeExtensionValue(extension, key) {
436
436
  (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
437
437
  var size = extension.length;
438
- var searchValue = "-" + key + "-";
438
+ var searchValue = "-".concat(key, "-");
439
439
  var pos = extension.indexOf(searchValue);
440
440
  if (pos !== -1) {
441
441
  var start = pos + 4;
@@ -462,7 +462,7 @@ var ReactIntl = (function() {
462
462
  }
463
463
  return extension.slice(start, end);
464
464
  }
465
- searchValue = "-" + key;
465
+ searchValue = "-".concat(key);
466
466
  pos = extension.indexOf(searchValue);
467
467
  if (pos !== -1 && pos + 3 === size) {
468
468
  return "";
@@ -496,13 +496,13 @@ var ReactIntl = (function() {
496
496
  var supportedExtension = "-u";
497
497
  for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
498
498
  var key = relevantExtensionKeys_1[_i];
499
- (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for " + foundLocale);
499
+ (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
500
500
  var foundLocaleData = localeData[foundLocale];
501
- (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data " + key + " must be an object");
501
+ (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
502
502
  var keyLocaleData = foundLocaleData[key];
503
- (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
503
+ (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
504
504
  var value = keyLocaleData[0];
505
- (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got " + typeof value + " in key " + key);
505
+ (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
506
506
  var supportedExtensionAddition = "";
507
507
  if (r.extension) {
508
508
  var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
@@ -510,11 +510,11 @@ var ReactIntl = (function() {
510
510
  if (requestedValue !== "") {
511
511
  if (~keyLocaleData.indexOf(requestedValue)) {
512
512
  value = requestedValue;
513
- supportedExtensionAddition = "-" + key + "-" + value;
513
+ supportedExtensionAddition = "-".concat(key, "-").concat(value);
514
514
  }
515
515
  } else if (~requestedValue.indexOf("true")) {
516
516
  value = "true";
517
- supportedExtensionAddition = "-" + key;
517
+ supportedExtensionAddition = "-".concat(key);
518
518
  }
519
519
  }
520
520
  }
@@ -836,8 +836,8 @@ var ReactIntl = (function() {
836
836
  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]/;
837
837
 
838
838
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
839
- var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
840
- var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
839
+ var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
840
+ var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
841
841
 
842
842
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
843
843
  var import_intl_localematcher = __toModule(require_intl_localematcher());
@@ -1322,8 +1322,8 @@ var ReactIntl = (function() {
1322
1322
 
1323
1323
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/parser.js
1324
1324
  var _a;
1325
- var SPACE_SEPARATOR_START_REGEX = new RegExp("^" + SPACE_SEPARATOR_REGEX.source + "*");
1326
- var SPACE_SEPARATOR_END_REGEX = new RegExp(SPACE_SEPARATOR_REGEX.source + "*$");
1325
+ var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
1326
+ var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
1327
1327
  function createLocation(start, end) {
1328
1328
  return { start: start, end: end };
1329
1329
  }
@@ -1490,7 +1490,7 @@ var ReactIntl = (function() {
1490
1490
  return {
1491
1491
  val: {
1492
1492
  type: TYPE.literal,
1493
- value: "<" + tagName + "/>",
1493
+ value: "<".concat(tagName, "/>"),
1494
1494
  location: createLocation(startPosition, this.clonePosition())
1495
1495
  },
1496
1496
  err: null
@@ -1983,7 +1983,7 @@ var ReactIntl = (function() {
1983
1983
  }
1984
1984
  var code = codePointAt(this.message, offset);
1985
1985
  if (code === void 0) {
1986
- throw Error("Offset " + offset + " is at invalid UTF-16 code unit boundary");
1986
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
1987
1987
  }
1988
1988
  return code;
1989
1989
  };
@@ -2033,7 +2033,7 @@ var ReactIntl = (function() {
2033
2033
  };
2034
2034
  Parser2.prototype.bumpTo = function(targetOffset) {
2035
2035
  if (this.offset() > targetOffset) {
2036
- throw Error("targetOffset " + targetOffset + " must be greater than or equal to the current offset " + this.offset());
2036
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
2037
2037
  }
2038
2038
  targetOffset = Math.min(targetOffset, this.message.length);
2039
2039
  while (true) {
@@ -2042,7 +2042,7 @@ var ReactIntl = (function() {
2042
2042
  break;
2043
2043
  }
2044
2044
  if (offset > targetOffset) {
2045
- throw Error("targetOffset " + targetOffset + " is at invalid UTF-16 code unit boundary");
2045
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
2046
2046
  }
2047
2047
  this.bump();
2048
2048
  if (this.isEOF()) {
@@ -2201,28 +2201,28 @@ var ReactIntl = (function() {
2201
2201
  return _this;
2202
2202
  }
2203
2203
  FormatError2.prototype.toString = function() {
2204
- return "[formatjs Error: " + this.code + "] " + this.message;
2204
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2205
2205
  };
2206
2206
  return FormatError2;
2207
2207
  }(Error);
2208
2208
  var InvalidValueError = function(_super) {
2209
2209
  __extends(InvalidValueError2, _super);
2210
2210
  function InvalidValueError2(variableId, value, options, originalMessage) {
2211
- return _super.call(this, 'Invalid values for "' + variableId + '": "' + value + '". Options are "' + Object.keys(options).join('", "') + '"', ErrorCode.INVALID_VALUE, originalMessage) || this;
2211
+ return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
2212
2212
  }
2213
2213
  return InvalidValueError2;
2214
2214
  }(FormatError);
2215
2215
  var InvalidValueTypeError = function(_super) {
2216
2216
  __extends(InvalidValueTypeError2, _super);
2217
2217
  function InvalidValueTypeError2(value, type, originalMessage) {
2218
- return _super.call(this, 'Value for "' + value + '" must be of type ' + type, ErrorCode.INVALID_VALUE, originalMessage) || this;
2218
+ return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
2219
2219
  }
2220
2220
  return InvalidValueTypeError2;
2221
2221
  }(FormatError);
2222
2222
  var MissingValueError = function(_super) {
2223
2223
  __extends(MissingValueError2, _super);
2224
2224
  function MissingValueError2(variableId, originalMessage) {
2225
- return _super.call(this, 'The intl string context variable "' + variableId + '" was not provided to the string "' + originalMessage + '"', ErrorCode.MISSING_VALUE, originalMessage) || this;
2225
+ return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
2226
2226
  }
2227
2227
  return MissingValueError2;
2228
2228
  }(FormatError);
@@ -2349,7 +2349,7 @@ var ReactIntl = (function() {
2349
2349
  continue;
2350
2350
  }
2351
2351
  if (isPluralElement(el)) {
2352
- var opt = el.options["=" + value];
2352
+ var opt = el.options["=".concat(value)];
2353
2353
  if (!opt) {
2354
2354
  if (!Intl.PluralRules) {
2355
2355
  throw new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n', ErrorCode.MISSING_INTL_API, originalMessage);
@@ -2590,7 +2590,7 @@ var ReactIntl = (function() {
2590
2590
  function IntlError2(code, message, exception) {
2591
2591
  var _this = this;
2592
2592
  var err = exception ? exception instanceof Error ? exception : new Error(String(exception)) : void 0;
2593
- _this = _super.call(this, "[@formatjs/intl Error " + code + "] " + message + " \n" + (err ? "\n" + err.message + "\n" + err.stack : "")) || this;
2593
+ _this = _super.call(this, "[@formatjs/intl Error ".concat(code, "] ").concat(message, " \n").concat(err ? "\n".concat(err.message, "\n").concat(err.stack) : "")) || this;
2594
2594
  _this.code = code;
2595
2595
  if (typeof Error.captureStackTrace === "function") {
2596
2596
  Error.captureStackTrace(_this, IntlError2);
@@ -2623,14 +2623,14 @@ var ReactIntl = (function() {
2623
2623
  var IntlFormatError = function(_super) {
2624
2624
  __extends(IntlFormatError2, _super);
2625
2625
  function IntlFormatError2(message, locale, exception) {
2626
- return _super.call(this, IntlErrorCode.FORMAT_ERROR, message + " \nLocale: " + locale + "\n", exception) || this;
2626
+ return _super.call(this, IntlErrorCode.FORMAT_ERROR, "".concat(message, " \nLocale: ").concat(locale, "\n"), exception) || this;
2627
2627
  }
2628
2628
  return IntlFormatError2;
2629
2629
  }(IntlError);
2630
2630
  var MessageFormatError = function(_super) {
2631
2631
  __extends(MessageFormatError2, _super);
2632
2632
  function MessageFormatError2(message, locale, descriptor, exception) {
2633
- var _this = _super.call(this, message + " \nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", locale, exception) || this;
2633
+ var _this = _super.call(this, "".concat(message, " \nMessageID: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.id, "\nDefault Message: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage, "\nDescription: ").concat(descriptor === null || descriptor === void 0 ? void 0 : descriptor.description, " \n"), locale, exception) || this;
2634
2634
  _this.descriptor = descriptor;
2635
2635
  return _this;
2636
2636
  }
@@ -2639,7 +2639,7 @@ var ReactIntl = (function() {
2639
2639
  var MissingTranslationError = function(_super) {
2640
2640
  __extends(MissingTranslationError2, _super);
2641
2641
  function MissingTranslationError2(descriptor, locale) {
2642
- var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "' + descriptor.id + '" for locale "' + locale + '", using ' + (descriptor.defaultMessage ? "default message" : "id") + " as fallback.") || this;
2642
+ var _this = _super.call(this, IntlErrorCode.MISSING_TRANSLATION, 'Missing message: "'.concat(descriptor.id, '" for locale "').concat(locale, '", using ').concat(descriptor.defaultMessage ? "default message" : "id", " as fallback.")) || this;
2643
2643
  _this.descriptor = descriptor;
2644
2644
  return _this;
2645
2645
  }
@@ -2794,7 +2794,7 @@ var ReactIntl = (function() {
2794
2794
  if (format) {
2795
2795
  return format;
2796
2796
  }
2797
- onError(new UnsupportedFormatterError("No " + type + " format named: " + name));
2797
+ onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
2798
2798
  }
2799
2799
 
2800
2800
  // bazel-out/darwin-fastbuild/bin/packages/intl/lib/src/message.js
@@ -2848,7 +2848,7 @@ var ReactIntl = (function() {
2848
2848
  var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
2849
2849
  return formatter.format(values);
2850
2850
  } catch (e) {
2851
- onError(new MessageFormatError('Error formatting default message for: "' + id + '", rendering default message verbatim', locale, messageDescriptor, e));
2851
+ onError(new MessageFormatError('Error formatting default message for: "'.concat(id, '", rendering default message verbatim'), locale, messageDescriptor, e));
2852
2852
  return typeof defaultMessage === "string" ? defaultMessage : id;
2853
2853
  }
2854
2854
  }
@@ -2858,14 +2858,14 @@ var ReactIntl = (function() {
2858
2858
  var formatter = state.getMessageFormat(message, locale, formats, __assign({ formatters: state }, opts || {}));
2859
2859
  return formatter.format(values);
2860
2860
  } catch (e) {
2861
- onError(new MessageFormatError('Error formatting message: "' + id + '", using ' + (defaultMessage ? "default message" : "id") + " as fallback.", locale, messageDescriptor, e));
2861
+ onError(new MessageFormatError('Error formatting message: "'.concat(id, '", using ').concat(defaultMessage ? "default message" : "id", " as fallback."), locale, messageDescriptor, e));
2862
2862
  }
2863
2863
  if (defaultMessage) {
2864
2864
  try {
2865
2865
  var formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats, opts);
2866
2866
  return formatter.format(values);
2867
2867
  } catch (e) {
2868
- onError(new MessageFormatError('Error formatting the default message for: "' + id + '", rendering message verbatim', locale, messageDescriptor, e));
2868
+ onError(new MessageFormatError('Error formatting the default message for: "'.concat(id, '", rendering message verbatim'), locale, messageDescriptor, e));
2869
2869
  }
2870
2870
  }
2871
2871
  if (typeof message === "string") {
@@ -3012,7 +3012,7 @@ var ReactIntl = (function() {
3012
3012
  ];
3013
3013
  var now = Date.now();
3014
3014
  function generateToken(i) {
3015
- return now + "_" + i + "_" + now;
3015
+ return "".concat(now, "_").concat(i, "_").concat(now);
3016
3016
  }
3017
3017
  function formatList(opts, getListFormat, values, options) {
3018
3018
  if (options === void 0) {
@@ -3185,13 +3185,13 @@ var ReactIntl = (function() {
3185
3185
  var locale = resolvedConfig.locale, defaultLocale = resolvedConfig.defaultLocale, onError = resolvedConfig.onError;
3186
3186
  if (!locale) {
3187
3187
  if (onError) {
3188
- onError(new InvalidConfigError('"locale" was not configured, using "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'));
3188
+ onError(new InvalidConfigError('"locale" was not configured, using "'.concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')));
3189
3189
  }
3190
3190
  resolvedConfig.locale = resolvedConfig.defaultLocale || "en";
3191
3191
  } else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {
3192
- onError(new MissingDataError('Missing locale data for locale: "' + locale + '" in Intl.NumberFormat. Using default locale: "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'));
3192
+ onError(new MissingDataError('Missing locale data for locale: "'.concat(locale, '" in Intl.NumberFormat. Using default locale: "').concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')));
3193
3193
  } else if (!Intl.DateTimeFormat.supportedLocalesOf(locale).length && onError) {
3194
- onError(new MissingDataError('Missing locale data for locale: "' + locale + '" in Intl.DateTimeFormat. Using default locale: "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'));
3194
+ onError(new MissingDataError('Missing locale data for locale: "'.concat(locale, '" in Intl.DateTimeFormat. Using default locale: "').concat(defaultLocale, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')));
3195
3195
  }
3196
3196
  verifyConfigMessages(resolvedConfig);
3197
3197
  return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });
@@ -3250,7 +3250,7 @@ var ReactIntl = (function() {
3250
3250
  return React2.createElement(WrappedComponent, __assign({}, props, intlProp, { ref: forwardRef2 ? props.forwardedRef : null }));
3251
3251
  });
3252
3252
  };
3253
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
3253
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
3254
3254
  WithIntl.WrappedComponent = WrappedComponent;
3255
3255
  if (forwardRef2) {
3256
3256
  return (0, import_hoist_non_react_statics.default)(React2.forwardRef(function(props, ref) {
@@ -23,7 +23,7 @@ function injectIntl(WrappedComponent, options) {
23
23
  var intlProp = (_a = {}, _a[intlPropName] = intl, _a);
24
24
  return (React.createElement(WrappedComponent, (0, tslib_1.__assign)({}, props, intlProp, { ref: forwardRef ? props.forwardedRef : null })));
25
25
  })); };
26
- WithIntl.displayName = "injectIntl(" + getDisplayName(WrappedComponent) + ")";
26
+ WithIntl.displayName = "injectIntl(".concat(getDisplayName(WrappedComponent), ")");
27
27
  WithIntl.WrappedComponent = WrappedComponent;
28
28
  if (forwardRef) {
29
29
  return (0, hoist_non_react_statics_1.default)(React.forwardRef(function (props, ref) { return (React.createElement(WithIntl, (0, tslib_1.__assign)({}, props, { forwardedRef: ref }))); }), WrappedComponent);