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

Method supportedLocalesOf

packages/intl-pluralrules/index.ts:253–262  ·  view source on GitHub ↗
(
    locales?: string | string[],
    options?: Pick<Intl.PluralRulesOptions, 'localeMatcher'>
  )

Source from the content-addressed store, hash-verified

251 return '[object Intl.PluralRules]'
252 }
253 public static supportedLocalesOf(
254 locales?: string | string[],
255 options?: Pick<Intl.PluralRulesOptions, 'localeMatcher'>
256 ): string[] {
257 return SupportedLocales(
258 PluralRules.availableLocales,
259 CanonicalizeLocaleList(locales),
260 options
261 )
262 }
263 public static __addLocaleData(...data: PluralRulesLocaleData[]): void {
264 for (const {data: d, locale} of data) {
265 PluralRules.localeData[locale] = d

Callers

nothing calls this directly

Calls 2

SupportedLocalesFunction · 0.85
CanonicalizeLocaleListFunction · 0.50

Tested by

no test coverage detected