MCPcopy Index your code
hub / github.com/formatjs/formatjs / supportedLocalesOf

Method supportedLocalesOf

packages/intl-durationformat/core.ts:311–320  ·  view source on GitHub ↗
(
    locales: string | string[],
    options?: Pick<DurationFormatOptions, 'localeMatcher'>
  )

Source from the content-addressed store, hash-verified

309 }
310
311 static supportedLocalesOf(
312 locales: string | string[],
313 options?: Pick<DurationFormatOptions, 'localeMatcher'>
314 ): string[] {
315 return SupportedLocales(
316 DurationFormat.availableLocales,
317 CanonicalizeLocaleList(locales),
318 options as any
319 )
320 }
321
322 static __defaultLocale = 'en'
323 static availableLocales: Set<string> = new Set<string>()

Callers

nothing calls this directly

Calls 2

SupportedLocalesFunction · 0.85
CanonicalizeLocaleListFunction · 0.50

Tested by

no test coverage detected