Pluralize
From Shopify Wiki
[edit]
pluralize(input, singular, plural)
This filter accepts a number, and two words - one for singular, one for plural and returns the singular word if input equals 1, otherwise the plural.
Example:
You have {{ cart.item_count }} {{ cart.item_count | pluralize: 'item', 'items' }} in your shopping cart.
