Localization

The t (translate) filter renders a translated string for the storefront's active language. Instead of hard-coding interface text into your templates, you reference a translation key and let EasyStore return the correct string for whichever language the shopper is browsing in.

The t filter

Apply the t filter to a translation key. A key is a dotted, namespaced string that identifies a single interface phrase.

{{ 'general.view_all' | t }}

{{ 'cart.general.checkout' | t }}

{{ 'products.product.sold_out' | t }}
			

Each key resolves to a string in the active storefront language. If the shopper switches languages, the same key resolves to the corresponding translation without any template changes.

Passing variables

Some strings contain placeholders that need to be filled in at render time. Pass a value after the filter to substitute it into the string.

{{ 'general.meta.page' | t: current_page }}

{{ 'cart.general.savings_html' | t: savings }}
			

Placeholders can also be passed as named arguments, where the argument name matches the placeholder used inside the translation string:

{{ 'general.pagination.page' | t: number: part.title }}
			

Key namespaces

Translation keys are grouped into namespaces by the part of the storefront they belong to. Common namespaces include:

  • general.* — shared interface text, search, pagination, and meta labels.
  • cart.* — cart page and checkout button text.
  • products.product.* — product page labels such as add to cart and sold out.
  • accessibility.* — screen-reader and assistive labels.
  • checkout.* — checkout-related strings.
  • customer.* — account, login, registration, and address strings.

Where translations come from

Translation strings resolve from EasyStore's platform locale set for the merchant's enabled languages. The theme itself does not ship a locales/ folder — you reference keys with the t filter, and EasyStore supplies the string for the active language. Keys that are available depend on the languages the merchant has enabled in their control panel.

For the full list of filters available in themes, see the Filters reference.

icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale