From e2931058cbdd0b32bac62830883cb8f079a136bc Mon Sep 17 00:00:00 2001 From: piexian <64474352+piexian@users.noreply.github.com> Date: Sat, 11 Apr 2026 22:04:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=BC=BA=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E5=87=BD=E6=95=B0=E7=9A=84=E5=81=A5=E5=A3=AE=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E5=A4=84=E7=90=86=E6=97=A0=E6=95=88=E9=94=AE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/statics/admin/config.html | 1 + app/statics/js/i18n.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/statics/admin/config.html b/app/statics/admin/config.html index 8a5decd0..a3e73c87 100644 --- a/app/statics/admin/config.html +++ b/app/statics/admin/config.html @@ -647,6 +647,7 @@ let _dirty = {}; // { "section.key": newValue } let _activeTab = SCHEMA_DEF[0].id; function tr(key, params, fallback) { + if (!key) return fallback ?? ''; const value = t(key, params); return value === key ? (fallback ?? key) : value; } diff --git a/app/statics/js/i18n.js b/app/statics/js/i18n.js index 28257432..a8b614f5 100644 --- a/app/statics/js/i18n.js +++ b/app/statics/js/i18n.js @@ -32,7 +32,11 @@ return b||'zh'; } - function get(o,k){ for(var p=k.split('.'),i=0;i