0

I want to change the invoice button name on the sales order, how to do that using translation (i18n)

enter image description here

For testing I tried to change the translation in this path /vendor/magento/module-sales/i18n/en_US.csv and then changed the admin setting but that not worked

admin > Store > Configuration > Advance > Developer > Translate Inline > Enabled for Storefront as YES 

enter image description here

Is there any other way to override the adminhtml translation ?

8
  • Which you marked in image it's "Invoice" and in csv It's "Invoices". Mar 17, 2020 at 5:12
  • actually i have just given example, i tried with "Send Email" which is present in the csv, but for that it not worked Mar 17, 2020 at 5:15
  • also can you let me know how to override this path /vendor/magento/module-sales/i18n/en_US.csv as it is core Mar 17, 2020 at 5:17
  • Did you do upgrade deploy after change in csv? It's working from my end after upgrade deploy. Mar 17, 2020 at 5:28
  • ok, i will try again..can you suggest how to override the i18n folder, the path where i place the translation csv Mar 17, 2020 at 5:29

1 Answer 1

2

You can override translation csv file using this way :

app/design/{AreaName}/{Vendorname}/{themename}/i18n/en_US.csv

or You can follow this 2nd way also

Just Copy this file vendor\magento\module-sales\i18n\en_US.csv and paste it to any of your extension app\code\vendor\module\i18n

After, Process Upgrade and Deploy step and check it.

3
  • 1
    Just Copy this file vendor\magento\module-sales\i18n\en_US.csv and paste it to any of your extension app\code\vendor\module\i18n did this way, thanks Mar 17, 2020 at 6:51
  • 1
    Thanks !! Happy to help !! Happy Coding :) Mar 17, 2020 at 6:54
  • Happy coding :) Mar 17, 2020 at 7:02

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.