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, so write the count yourself before it.

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"