I18nPluralPipe
pipe
Maps a value to a string that pluralizes the value according to locale rules.
API
Description
Usage Notes
class I18nPluralPipe implements PipeTransform {}
transform
string
@paramvalue
number | null | undefined
the number to be formatted
@parampluralMap
{ [count: string]: string; }
an object that mimics the ICU format, see https://unicode-org.github.io/icu/userguide/format_parse/messages/.
@paramlocale
string | undefined
a string
defining the locale to use (uses the current LOCALE_ID
by
default).
@returns
string
Jump to details