MCPcopy
hub / github.com/formatjs/formatjs / maximize

Method maximize

packages/intl-locale/index.ts:597–605  ·  view source on GitHub ↗

* https://www.unicode.org/reports/tr35/#Likely_Subtags

()

Source from the content-addressed store, hash-verified

595 * https://www.unicode.org/reports/tr35/#Likely_Subtags
596 */
597 public maximize(): Locale {
598 const locale = getInternalSlots(this).locale
599 try {
600 const maximizedLocale = addLikelySubtags(locale)
601 return new Locale(maximizedLocale)
602 } catch {
603 return new Locale(locale)
604 }
605 }
606
607 /**
608 * https://www.unicode.org/reports/tr35/#Likely_Subtags

Callers 10

loadDatesFieldsFunction · 0.80
calendarsOfLocaleFunction · 0.80
hourCyclesOfLocaleFunction · 0.80
weekInfoOfLocaleFunction · 0.80
index.test.tsFile · 0.80
processDataFunction · 0.80
findMatchingDistanceImplFunction · 0.80
findBestMatchFunction · 0.80

Calls 2

addLikelySubtagsFunction · 0.85
getInternalSlotsFunction · 0.70

Tested by

no test coverage detected