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