Manage singular and plural numeric translations
On this page
Overview
A string that reports a number needs more than one wording. “1 match” and “5 matches” cannot come from the same translation value, and choosing between them in the template hard-codes English grammar into your theme, where no translator can reach it.
The t filter does the choosing instead. Give one key several values, one per plural form, then pass the number as count when you call the key. The filter returns the form that matches the number.
This topic is for theme developers writing Liquid templates, and for anyone maintaining Locale Translation records for a translated store.
:::note
StoreConnect has no pluralize filter. Pluralization is a feature of the t filter, described below. A template that pipes a number into pluralize produces nothing useful.
:::
Syntax
Pluralization has two halves: how you name the keys, and how you call them.
Naming the keys
Add the plural form to the end of the key, after a dot:
```text
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.