2

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!

2 Answers 2

1

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.

3
  • I tried same but not working in my case. Do I need to create registartion.php for same? Commented Aug 26, 2019 at 7:21
  • No @RanjitShinde, there is no need to create registration.php. You may need to compile and deploy static content. Commented Aug 26, 2019 at 7:38
  • I compile and deployed but its not working Commented Aug 26, 2019 at 8:51
0

app/code/Vendor/Module/i18n/en_US.csv

To change label:

Quantity,"Quantity Available"

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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