1

I am trying to override: vendor/magento/module_catalog/i18n/en_US.csv

The file was copied to: app/design/adminhtml/vendor/theme/Magento_Catalog/i18n/en_US.csv

Then I ran: php bin/magento setup:static-content:deploy -f & php bin/magento cache:flush

When I look at the admin area the label hasn't changed.

2
  • Did you created any custom theme for admin? Dec 25, 2019 at 4:25
  • No I did not create an admin theme. I also tried putting the file here: app/design/adminhtml/magento/module-catalog/i18n/en_US.csv which didn't work. Dec 26, 2019 at 15:55

2 Answers 2

1

Core Module translations will not be overridden in custom theme so you need to place the new translations in your custom module folder. Create an empty module or use your existing module.

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

In detail, Go to section Translation file is located in i18n folder

0
1

You can give a try by keeping the file into:

app/design/adminhtml/vendor/theme/Magento_Catalog/i18n/en_US.csv

Currenlty you didn't put it in i18n directory. Also make sure that you have working admin theme which has already been created and configured. You can add the same translation using your custom module as translation is performed globally for whole area. It would be working fine for whole admin phrases.

1
  • I already had it in the i18n directory, I made a mistake when I posted this question and have it updated. Dec 26, 2019 at 15:42

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.