enter image description here

Where i can find these 2 buttons in magento 2 i want to translate these buttons


You can add translation against these button text in this:


Note: File name would depend upon your required language

Then add these lines in file:


After deployment this will work:

php -dmemory_limit=1G bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
  • Thanks its working – Junaid Ashfaq Jul 10 at 9:50
  • That's great. Please vote answer and mark it correct if it is working – Shoaib Munir Jul 10 at 9:52
  • please tell me how i can translate cancel word what syntax used? – Junaid Ashfaq Jul 10 at 10:02
  • Already in answer, in your csv add this line "Cancel","[NEW_CANCEL_TEXT]" and after deployment it will work – Shoaib Munir Jul 10 at 10:06
  • @JunaidAshfaq you said my answer worked for you and mark other answer. Please mark my answer correct if it is helpful to you, so that it would be helpful for others in future – Shoaib Munir Jul 10 at 12:39

check with below part,content exist there.

File path: magento/vendor/magento/module-ui/view/base/web/js/modal/confirm.js

buttons: [{
    text: $t('Cancel'),
    class: 'action-secondary action-dismiss',

     * Click handler.
    click: function (event) {
}, {
    text: $t('OK'),
    class: 'action-primary action-accept',

     * Click handler.
    click: function (event) {
        this.closeModal(event, true);

I hope its work for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.