MCPcopy
hub / github.com/formatjs/formatjs / localeBase

Function localeBase

packages/intl-collator/compare.ts:94–96  ·  view source on GitHub ↗
(locale: string)

Source from the content-addressed store, hash-verified

92const tailoringCache = new Map<string, readonly TailoringEntry[]>()
93
94function localeBase(locale: string): string {
95 return locale.split('-u-')[0]
96}
97
98function collationForComparison(locale: string, collation: string): string {
99 if (collation !== 'default') {

Callers 1

comparePreparedStringsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected