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