Atwix blog

Magento 2 CLI translations scripts

Magento 2 CLI scripts translations

You already know how to create a simple CLI script. The CLI scripts are initialized with a different area – basically, with a separate CLI area\aplication, which lacks the standard frontend\admin localizations functionality. We faced that when developing a script for sending order emails via CLI – the emails were missing translations of the origin of the order. Let’s try to figure out “why?” and “how to fix?”.

Comments (1) Read More
Replace the Magento language selector with flag icons

Replace the Magento language selector with flag icons

In most Magento templates, we can see the language selector provided as a simple pull down menu. Let’s explore a way to enhance the look and make a more attractive, custom style.
In the example below, I’ll tell you how to make a multilingual store and replace the standard language selector with flag icons.

Comments (17) Read More

Subscribe to our blog