plural
Pluralises a word based on the given number.
Specification
{{ number | plural: words }}
Parameter | Description | Example Values |
---|---|---|
number (required) | The numerical amount. | 5 |
words (required) | The words to pluralise based on the given number specified. | “item” |
Examples
{{ 1 | plural: 'item' }}
This will produce “1 item”
{{ 12 | plural: 'item' }}
This will produce “12 items”