core: fix translation fallback

This commit is contained in:
undefined committed 2021-09-17 14:35:16 +08:00
1 parent 249efeb4cf
commit 461b486891
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -312,7 +312,7 @@ export class HandlerCommon {
translate(str: string) {
if (!str) return '';
return str.toString().translate(this.user?.viewLang, this.session?.viewLang, system.get('server.language'));
return str.toString().translate(this.user?.viewLang || system.get('server.language'), this.session?.viewLang);
}
renderTitle(str: string) {