0

I'm trying to translate the string items from app/design/frontend/<Vendor>/<theme>/Magento_Checkout/templates/cart/minicart.phtml without success.

I have a dictionary already created in app/design/frontend/<Vendor>/<theme>/i18n/es_ES.csv and I tried collecting all the strings using:

php bin/magento i18n:collect-phrases --output="app/design/frontend/<Vendor>/<theme>/i18n/es_ES.csv"

The .csv file doesn't collect the string for the translation. What am I missing?

minicart.phtml

4
  • Please check mobecls.com/working-mini-cart-magento-2
    – Sumit
    Commented Sep 9, 2019 at 10:02
  • what part you are trying to translate? Commented Sep 9, 2019 at 11:44
  • In the image above items string in line 27 @oscprofessionals
    – inodna
    Commented Sep 9, 2019 at 11:49
  • Are you trying to change item names. Item names are coming from data base and product admin interface data and not controlled by translation csv file.If we missed something please do elaborate further so that we can comment. Commented Sep 9, 2019 at 11:53

1 Answer 1

0

Didn't find the correct way to translate strings from pub/static/frontend/<Vendor>/<theme>/es_ES/js-translation.json so I decided to try the inline translation tool and it works like a charm. Hope I can save time and effor to some.

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.