Timeline for How to translate JS error message or text in Magento 2?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22 at 14:15 | comment | added | Pandurang Babar | Please execute the below commands rm -rf var/cache/* var/log/* var/page_cache/* var/view_preprocessed/* pub/static/frontend/* php bin/magento cache:flush php bin/magento setup:static-content:deploy -f | |
Nov 6, 2018 at 12:38 | comment | added | oliver de Cramer | This will work but is not the that clean of a code; you are requiring mage/translate but are not using it. . | |
Feb 9, 2018 at 3:00 | comment | added | eInyzant | Be aware that this will not work if you use it directly in phtml files. Magento will only parse and translate from js and html files. | |
Aug 1, 2016 at 10:22 | comment | added | thdoan | Just the answer I was looking for! +1 | |
Feb 2, 2016 at 7:23 | comment | added | Keyur Shah | Did you clear your cache and static-content deploy ? @PradeepKumar | |
Feb 2, 2016 at 6:05 | comment | added | Pradeep Kumar | created ar_KW.csv in my module i18n folder in that translated "Enter Your message here" in my j i tried it not working but in phtml if i do echo my translated text i displaying | |
Feb 2, 2016 at 5:43 | history | answered | Keyur Shah | CC BY-SA 3.0 |