Skip to content

Commit 8d82fe8

Browse files
committed
Merge remote-tracking branch 'origin/MC-25250' into 2.4-develop-pr5
2 parents 16771da + 0ae2984 commit 8d82fe8

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)