MessageNumber.selectKey() method
In addition to matching exact values, numerical values will also match keys with the same plural rule category, i.e. one of zero
, one
, two
, few
, many
, and other
.
Signature:
selectKey(keys: Set<string>): string | null;
Parameters
Parameter | Type | Description |
---|---|---|
keys | Set<string> |
Returns:
string | null
Remarks
Different languages use different subset of plural rule categories. For example, cardinal English plurals only use one
and other
, so a key zero
will never be matched for that locale.