Language packs are already available for Hyvä in a number of languages. You can install them with Composer as usual. Find the available languages at https://docs.hyva.io/hyva-themes/building-your-theme/localization.html; more are being added over time. At the time of writing, Hyvä for Magento…
JavaScript translations are not working (Magento 2)
If you add a translation to a language CSV file (such as de_DE.csv), it may not be included correctly in your theme’s js-translation.json . Consequently, messages such as validation errors remain untranslated. To fix this, override vendor/magento/module-translation/Model/Json/PreProcessor.php and make the…
Overriding standard translations (Magento 1)
Open your theme’s translate.csv file and add the following content as a new line:
|
1 |
"Mage_Catalog::Choose an Option...","Wählen Sie eine Option" |
This allows you to override the default translation of “Choose an Option…” with your own translation. You only need the original English text (“Choose an…
What is “var Translator” and can it be removed? (Magento 1)
If you take a look at your Magento stores code, you might see the following JavaScript code:
|
1 |
var Translator = new Translate({...}); |
You might ask yourself, if its safe to remove that and what that code does. The code is responsible for translating your…