@formatjs/intl-getcanonicallocales 3.2.12 → 3.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/LICENSE.md +0 -0
- package/README.md +0 -0
- package/index.d.ts +0 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/polyfill-force.d.ts +0 -0
- package/polyfill-force.js +1 -1
- package/polyfill-force.js.map +1 -1
- package/polyfill.d.ts +0 -0
- package/polyfill.iife.js +1 -1
- package/polyfill.js +1 -1
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +0 -0
- package/should-polyfill.js +0 -0
- package/should-polyfill.js.map +1 -1
package/polyfill.d.ts
CHANGED
|
File without changes
|
package/polyfill.iife.js
CHANGED
|
@@ -9489,7 +9489,7 @@ function canonicalizeUnicodeLanguageId(unicodeLanguageId) {
|
|
|
9489
9489
|
lang: finalLangAst.lang,
|
|
9490
9490
|
script: finalLangAst.script,
|
|
9491
9491
|
variants: []
|
|
9492
|
-
})];
|
|
9492
|
+
})] || likelySubtags[finalLangAst.lang];
|
|
9493
9493
|
if (likelySubtag) {
|
|
9494
9494
|
const { region: likelyRegion } = parseUnicodeLanguageId(likelySubtag.split("-"));
|
|
9495
9495
|
if (likelyRegion && regions.indexOf(likelyRegion) > -1) replacedRegion = likelyRegion;
|
package/polyfill.js
CHANGED
|
@@ -9489,7 +9489,7 @@ function canonicalizeUnicodeLanguageId(unicodeLanguageId) {
|
|
|
9489
9489
|
lang: finalLangAst.lang,
|
|
9490
9490
|
script: finalLangAst.script,
|
|
9491
9491
|
variants: []
|
|
9492
|
-
})];
|
|
9492
|
+
})] || likelySubtags[finalLangAst.lang];
|
|
9493
9493
|
if (likelySubtag) {
|
|
9494
9494
|
const { region: likelyRegion } = parseUnicodeLanguageId(likelySubtag.split("-"));
|
|
9495
9495
|
if (likelyRegion && regions.indexOf(likelyRegion) > -1) replacedRegion = likelyRegion;
|