Is there a way to translate phrases defined in JS templates in Magento 2? I have checked official translation structure overview and searched the net but can't seem to find proper solution.
For example: I wish to translate Qty string within minicart element. I have added the following translation to i18n/xx_XX.csv:
"Qty","Translation"
but doesn't take effect after refreshing. Other strings within the csv that are server side generated are translated fine.
I also have tried with deleting all cache files within /var
and refreshing/flushing cache from admin.
Thanks for any suggestions.
app/code/Magento/Sales/i18n/en_US.csv
and you will see translated Qty in minicart in default locale. Most likely you added custom csv to the wrong location, check once again according to the official guide.js-translation.js
and we weren't able to solve our problems with this file with the answer there: magento.stackexchange.com/questions/89135/…