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

Add __('<your_string>') method in Alert Widget #4759

Merged
merged 2 commits into from
Jun 17, 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
8 changes: 4 additions & 4 deletions guides/v2.1/javascript-dev-guide/widgets/widget_alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The alert widget can be initialized with or without binding to a certain element

```javascript
$('#init_element').alert({
title: 'Warning',
content: 'Warning content',
title: $.mage.__('Warning'),
content: $.mage.__('Warning content'),
actions: {
always: function(){}
}
Expand All @@ -34,8 +34,8 @@ require([
], function(alert) { // Variable that represents the `alert` function

alert({
title: 'Some title',
content: 'Some content',
title: $.mage.__('Some title'),
content: $.mage.__('Some content'),
actions: {
always: function(){}
}
Expand Down