t
Translates a key from the theme’s locales/ files. Supports interpolation and counts.
Syntax
{{ 'products.product.add_to_cart' | t }}Parameters
| Parameter | Description |
|---|---|
(named args) | Interpolated into the translation |
count | Selects singular/plural forms |
Example
{{ 'cart.items_count' | t: count: cart.item_count }}Output:
3 items