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;
}
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;
}
- PluralRulesConstructor(
locales?: string | readonly string[],
options?: PluralRulesOptions,
): Intl.PluralRules Parameters
Optional
locales: string | readonly string[]Optional
options: PluralRulesOptions
Returns Intl.PluralRules
- PluralRulesConstructor(
locales?: LocalesArgument,
options?: PluralRulesOptions,
): Intl.PluralRules Parameters
Optional
locales: LocalesArgumentOptional
options: PluralRulesOptions
Returns Intl.PluralRules
Index
Constructors
Methods
Constructors
constructor
- new PluralRulesConstructor(
locales?: LocalesArgument,
options?: PluralRulesOptions,
): Intl.PluralRules Parameters
Optional
locales: LocalesArgumentOptional
options: PluralRulesOptions
Returns Intl.PluralRules
Methods
supportedLocalesOf
- supportedLocalesOf(
locales: LocalesArgument,
options?: { localeMatcher?: "lookup" | "best fit" },
): string[] Parameters
- locales: LocalesArgument
Optional
options: { localeMatcher?: "lookup" | "best fit" }
Returns string[]