@formatjs/intl-pluralrules
Version:
Polyfill for Intl.PluralRules
9 lines (8 loc) • 579 B
TypeScript
import { type PluralRulesData, type PluralRulesInternal } from "@formatjs/ecma402-abstract";
export declare function InitializePluralRules(pl: Intl.PluralRules, locales: string | string[] | undefined, options: Intl.PluralRulesOptions | undefined, { availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, getInternalSlots }: {
availableLocales: Set<string>;
relevantExtensionKeys: string[];
localeData: Record<string, PluralRulesData | undefined>;
getDefaultLocale(): string;
getInternalSlots(pl: Intl.PluralRules): PluralRulesInternal;
}): Intl.PluralRules;