Skip to content

Commit c32b643

Browse files
author
Vaha
committed
#18012: added description for _.i18n
1 parent 3a19f17 commit c32b643

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/web/mage/translate.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,14 @@ define([
4949

5050
// Provide i18n wrapper to be used in underscore templates for translation
5151
_.extend(_, {
52-
i18n: function (str) {
53-
return $.mage.__(str);
52+
/**
53+
* Make a translation using $.mage.__
54+
*
55+
* @param {String} text
56+
* @return {String}
57+
*/
58+
i18n: function (text) {
59+
return $.mage.__(text);
5460
}
5561
});
5662

0 commit comments

Comments
 (0)