Skip to content

Commit adf9c65

Browse files
authored
Update translate.js
fix empty string value in front translations
1 parent f540160 commit adf9c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ define([
3838
* @return {String}
3939
*/
4040
translate: function (text) {
41-
return _data[text] ? _data[text] : text;
41+
return _data.hasOwnProperty(text) ? _data[text] : text;
4242
}
4343
};
4444
}())

0 commit comments

Comments
 (0)