Skip to content

Commit 5db8fe7

Browse files
author
Stanislav Idolov
authored
ENGCOM-2607: fix #17193 Error with translation of confirmation modal buttons #17275
2 parents 14506fd + cc8df2b commit 5db8fe7

File tree

1 file changed

+5
-5
lines changed
  • app/code/Magento/Ui/view/base/web/js/modal

1 file changed

+5
-5
lines changed

app/code/Magento/Ui/view/base/web/js/modal/confirm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
define([
1010
'jquery',
1111
'underscore',
12+
'mage/translate',
1213
'jquery/ui',
13-
'Magento_Ui/js/modal/modal',
14-
'mage/translate'
15-
], function ($, _) {
14+
'Magento_Ui/js/modal/modal'
15+
], function ($, _, $t) {
1616
'use strict';
1717

1818
$.widget('mage.confirm', $.mage.modal, {
@@ -38,7 +38,7 @@ define([
3838
cancel: function () {}
3939
},
4040
buttons: [{
41-
text: $.mage.__('Cancel'),
41+
text: $t('Cancel'),
4242
class: 'action-secondary action-dismiss',
4343

4444
/**
@@ -48,7 +48,7 @@ define([
4848
this.closeModal(event);
4949
}
5050
}, {
51-
text: $.mage.__('OK'),
51+
text: $t('OK'),
5252
class: 'action-primary action-accept',
5353

5454
/**

0 commit comments

Comments
 (0)