SwissUpLabs Logo

Template localize and translate

Since module version 1.7.0

Meeting our users requests we added support of translation for static text in templates.

Directive i18n translates/localizes text. This directive Magento processes on storefront. So it uses translations of storeview user is currently browsing. Some examples are below:

Template of title for categories with free shipping.

📦 {{i18n "Free shipping for"}} {{attribute code="name"}}

Or

📦 {{attribute code="name" prefix="i18n:Free shipping for "}}

Both templates for catergory with name “Coffee mugs” generate title “📦 Free shipping for Coffee mugs” on storefront.

And in template log you get “📦 {{i18n “Free shipping for”}} Coffee mugs”.

Edit this Page