Skip to content

Commit 36e3dc1

Browse files
committed
fix(translate): ignore when translation fails
1 parent bfcc01e commit 36e3dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function translateText(text, {
3636
}
3737
return $.i18n(text, ...args);
3838
})();
39-
if (val !== text) return val;
39+
if (val !== text && typeof val === 'string') return val;
4040
}
4141
return fallback;
4242
}

0 commit comments

Comments
 (0)