@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/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/index.d.ts
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
@@ -9497,7 +9497,7 @@ function canonicalizeUnicodeLanguageId(unicodeLanguageId) {
|
|
|
9497
9497
|
lang: finalLangAst.lang,
|
|
9498
9498
|
script: finalLangAst.script,
|
|
9499
9499
|
variants: []
|
|
9500
|
-
})];
|
|
9500
|
+
})] || likelySubtags[finalLangAst.lang];
|
|
9501
9501
|
if (likelySubtag) {
|
|
9502
9502
|
const { region: likelyRegion } = parseUnicodeLanguageId(likelySubtag.split("-"));
|
|
9503
9503
|
if (likelyRegion && regions.indexOf(likelyRegion) > -1) replacedRegion = likelyRegion;
|