react-intl 5.24.0 → 5.24.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/package.json +7 -7
- package/react-intl.iife.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.1",
|
|
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,15 +128,15 @@
|
|
|
128
128
|
"types": "index.d.ts",
|
|
129
129
|
"sideEffects": false,
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@formatjs/ecma402-abstract": "1.11.
|
|
132
|
-
"@formatjs/icu-messageformat-parser": "2.0.
|
|
133
|
-
"@formatjs/intl": "1.18.
|
|
134
|
-
"@formatjs/intl-displaynames": "5.3.
|
|
135
|
-
"@formatjs/intl-listformat": "6.4.
|
|
131
|
+
"@formatjs/ecma402-abstract": "1.11.1",
|
|
132
|
+
"@formatjs/icu-messageformat-parser": "2.0.16",
|
|
133
|
+
"@formatjs/intl": "1.18.1",
|
|
134
|
+
"@formatjs/intl-displaynames": "5.3.1",
|
|
135
|
+
"@formatjs/intl-listformat": "6.4.1",
|
|
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.11.
|
|
139
|
+
"intl-messageformat": "9.11.1",
|
|
140
140
|
"tslib": "^2.1.0"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
package/react-intl.iife.js
CHANGED
|
@@ -383,10 +383,10 @@ var ReactIntl = (function() {
|
|
|
383
383
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
384
384
|
var utils_1 = require_utils();
|
|
385
385
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
386
|
-
var minimizedAvailableLocaleMap =
|
|
387
|
-
|
|
388
|
-
return
|
|
389
|
-
}
|
|
386
|
+
var minimizedAvailableLocaleMap = {};
|
|
387
|
+
availableLocales.forEach(function(l2) {
|
|
388
|
+
return minimizedAvailableLocaleMap[l2] = l2;
|
|
389
|
+
});
|
|
390
390
|
var minimizedAvailableLocales = new Set();
|
|
391
391
|
availableLocales.forEach(function(locale2) {
|
|
392
392
|
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|