Skip to content

Commit 268b1ba

Browse files
committed
Code review
1 parent adf9c65 commit 268b1ba

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.hasOwnProperty(text) ? _data[text] : text;
41+
return typeof _data[text] !== 'undefined' ? _data[text] : text;
4242
}
4343
};
4444
}())

0 commit comments

Comments
 (0)