I'm building an online store using Magento version 2.1.8. I've created a Luma child-theme.
Magento offers CSV files for translating most of it. But the minicart uses JavaScript for the text strings within it.
How can I overwrite the default English text, for Romanian?
Best Answer
For JS translate you must create language pack with below files.
/app/i18n/Myshop/ro_ro/language.xml:
/app/i18n/Myshop/ro_ro/registration.php:
/app/i18n/Myshop/ro_ro/ro_RO.csv with your translates (examples):
For apply your store must use Romanian locale, of course. JS translates are stored in /pub/static/frontend/Myshop/Mytheme/ro_RO/js-translation.json.
Remove this file for refresh, clear cache and browser local storage. Enjoy!