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

Add __('<your_string>') method in Confirm Widget Examples #4797

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions guides/v2.1/javascript-dev-guide/widgets/widget_confirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The confirmation widget can be initialized with or without binding to a certain

```javascript
$('#confirm_init').confirm({
title: 'Confirmation title',
title: $.mage.__('Confirmation title'),
actions: {
confirm: function(){}, //callback on 'Ok' button click
cancel: function(){}, //callback on 'Cancel' button click
Expand All @@ -36,8 +36,8 @@ require([
], function(confirmation) { // Variable that represents the `confirm` widget

confirmation({
title: 'Some title',
content: 'Some content',
title: $.mage.__('Some title'),
content: $.mage.__('Some content'),
actions: {
confirm: function(){},
cancel: function(){},
Expand Down