I am familiar with translations in Magento 1 and found out also how translations in M2 work for the frontend. My questions is where to do my translation for my own custom module for the backend. Is there also a translation.csv and where should I put it?

Thanks in advance!


In Magento 2, translations file is saved in /vendor/magento/<module-modulename>/i18n folder.

For example, if you want to modify translation for word related to checkout module, it could be saved in /vendor/magento/module-checkout/i18n/<locale-folder> folder.

You can copy locale's csv file from /vendor/magento/module-checkout/i18n folder to app/code/Magento/module-checkout/i18n directory.

Please let me know if some thing is unclear.

| improve this answer | |
  • I tried same but not working in my case. Do I need to create registartion.php for same? – Ranjit Shinde Aug 26 '19 at 7:21
  • No @RanjitShinde, there is no need to create registration.php. You may need to compile and deploy static content. – Mohit Kumar Arora Aug 26 '19 at 7:38
  • I compile and deployed but its not working – Ranjit Shinde Aug 26 '19 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.