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.csvand 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. – Alex Paliarush Dec 23 '15 at 10:21js-translation.jsand we weren't able to solve our problems with this file with the answer there: http://magento.stackexchange.com/questions/89135/magento2-localisation-javascript – Jey DWork Dec 24 '15 at 04:49