Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 9b881d0

Browse files
magehardikjcalcaben
authored andcommitted
For Modal widget, Add __('<your_string>') method (#5646)
For Modal widget, Add __('<your_string>') method in Example because this method is used for translation of the string into another Languages.
1 parent c2bcc8f commit 9b881d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/v2.2/javascript-dev-guide/widgets/widget_modal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ buttons: [{
8080

8181
```javascript
8282
buttons: [{
83-
text: 'Ok',
83+
text: $.mage.__('Ok'),
8484
class: '',
8585
click: function() {
8686
this.closeModal();
@@ -259,7 +259,7 @@ The following example shows how to initialize the modal widget and pass options
259259
'trigger': '[data-trigger=trigger]',
260260
'responsive': true,
261261
'buttons': [{
262-
text: 'Submit',
262+
text: $.mage.__('Submit'),
263263
class: 'action'
264264
}]
265265
}}">

0 commit comments

Comments
 (0)