getPlural()
Chooses a plural form based on a specific quantity.
getPlural(n: number, forms: string[]): string;
Notes
- This method is used by DeferredString to choose a plural form, and is part of the DeferredString.I18nProvider interface.
Parameters
- n — The quantity on which to base the plural form
- forms — The list of plural forms from which to choose
Return value
The chosen plural form
Related
class I18nContext
An object that provides internationalization functionality for the current locale.
