Interface PluralRulesConstructor

interface PluralRulesConstructor {
    new PluralRulesConstructor(
        locales?: LocalesArgument,
        options?: PluralRulesOptions,
    ): Intl.PluralRules;
    supportedLocalesOf(
        locales: LocalesArgument,
        options?: { localeMatcher?: "lookup" | "best fit" },
    ): string[];
    (
        locales?: string | readonly string[],
        options?: PluralRulesOptions,
    ): Intl.PluralRules;
    (locales?: LocalesArgument, options?: PluralRulesOptions): Intl.PluralRules;
}

Constructors

Methods

Constructors

Methods

  • Parameters

    • locales: LocalesArgument
    • Optionaloptions: { localeMatcher?: "lookup" | "best fit" }

    Returns string[]