Skip to main content

$(pluralize)

$(pluralize [count] [singular] <plural>)

Displays the singular word when the count is exactly 1, otherwise the plural. When no plural is given, an s is appended to the singular. Only the word is displayed — write the count yourself before it, so the two compose naturally.

Examples

$(pluralize 1 bit)

Will display "bit"

{{amount}} $(pluralize {{amount}} bit)

Will display "1 bit" or "500 bits"

$(pluralize {{count}} cherry cherries)

Will display "cherry" or "cherries"