MCPcopy
hub / github.com/formatjs/formatjs / supportedLocalesOf

Method supportedLocalesOf

packages/intl-segmenter/segmenter.ts:283–292  ·  view source on GitHub ↗
(
    locales?: string | string[],
    options?: Pick<SegmenterOptions, 'localeMatcher'>
  )

Source from the content-addressed store, hash-verified

281 Object.keys(SegmentationRules).filter(key => key !== 'root')
282 )
283 static supportedLocalesOf(
284 locales?: string | string[],
285 options?: Pick<SegmenterOptions, 'localeMatcher'>
286 ): string[] {
287 return SupportedLocales(
288 Segmenter.availableLocales,
289 CanonicalizeLocaleList(locales),
290 options
291 )
292 }
293 public static readonly polyfilled = true
294}
295

Callers

nothing calls this directly

Calls 2

SupportedLocalesFunction · 0.85
CanonicalizeLocaleListFunction · 0.50

Tested by

no test coverage detected