The Javascript translation in Magento 2 is buggy as hell. And I just can't get the cancel button for the minicart dialogue translated. The one when you try to delete a product from the cart. I even tried adding it manually to the js-translation.json but that does not work either. Any tips?

  • hi, did you find any solution? I'm having the same problem.
    – Typo
    Nov 22, 2018 at 20:54
  • I could not find a good solution :( I think I hacked something stupid together but can't remember exactly. But it still seems buggy as hell.
    – alobeejay
    Nov 24, 2018 at 3:41

1 Answer 1


I've just come across the fix which should be released in 2.3.*

A temporary fix is to override the confirm.js file in your theme and make the changes specified in the PR.

To override in your theme place the new file in app/design/frontend/Vendor/theme/Magento_Ui/web/js/confirm.js

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.