Skip to content

Commit a8f09c7

Browse files
committed
Merge remote-tracking branch 'origin/MC-23211' into 2.3-develop-pr97
2 parents 6f8804c + 39f9fed commit a8f09c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ define([
3535
* @return {String}
3636
*/
3737
this.translate = function (text) {
38-
return _data[text] ? _data[text] : text;
38+
return typeof _data[text] === 'string' ? _data[text] : text;
3939
};
4040

4141
return this;

0 commit comments

Comments
 (0)