From f1459ad70e756d1cd886b655a76b38df5640cdbf Mon Sep 17 00:00:00 2001 From: Hardik Makwana <35128338+hardikm-cirkleinc@users.noreply.github.com> Date: Sat, 15 Jun 2019 01:46:48 +0530 Subject: [PATCH] Add __('') method in Alert Widget For Alert widget, Add __('') method in Example because this method is used for translation of the string. --- guides/v2.1/javascript-dev-guide/widgets/widget_alert.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/v2.1/javascript-dev-guide/widgets/widget_alert.md b/guides/v2.1/javascript-dev-guide/widgets/widget_alert.md index b95c4da4985..467ff8c453b 100644 --- a/guides/v2.1/javascript-dev-guide/widgets/widget_alert.md +++ b/guides/v2.1/javascript-dev-guide/widgets/widget_alert.md @@ -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(){} } @@ -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(){} }