@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/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;