We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14506fd + cc8df2b commit 5db8fe7Copy full SHA for 5db8fe7
app/code/Magento/Ui/view/base/web/js/modal/confirm.js
@@ -9,10 +9,10 @@
9
define([
10
'jquery',
11
'underscore',
12
+ 'mage/translate',
13
'jquery/ui',
- 'Magento_Ui/js/modal/modal',
14
- 'mage/translate'
15
-], function ($, _) {
+ 'Magento_Ui/js/modal/modal'
+], function ($, _, $t) {
16
'use strict';
17
18
$.widget('mage.confirm', $.mage.modal, {
@@ -38,7 +38,7 @@ define([
38
cancel: function () {}
39
},
40
buttons: [{
41
- text: $.mage.__('Cancel'),
+ text: $t('Cancel'),
42
class: 'action-secondary action-dismiss',
43
44
/**
@@ -48,7 +48,7 @@ define([
48
this.closeModal(event);
49
}
50
}, {
51
- text: $.mage.__('OK'),
+ text: $t('OK'),
52
class: 'action-primary action-accept',
53
54
0 commit comments