Magento 2: How to use translation to change the adminhtml button text?
-
12-04-2021 - |
سؤال
I want to change the invoice button name on the sales order, how to do that using translation (i18n)
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
Is there any other way to override the adminhtml translation ?
المحلول
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.
لا تنتمي إلى magento.stackexchange