feat: support dynamically set log level

This commit is contained in:
Gabe
2025-10-12 23:17:50 +08:00
parent f19b6ef02f
commit bfce9b525a
8 changed files with 119 additions and 18 deletions

View File

@@ -1628,6 +1628,11 @@ export const I18N = {
en: `The subtitle data is ready, please click the KT button to load it`,
zh_TW: `字幕資料已準備就緒請點擊KT按鈕加載`,
},
log_level: {
zh: `日志级别`,
en: `Log Level`,
zh_TW: `日誌等級`,
},
};
export const i18n = (lang) => (key) => I18N[key]?.[lang] || "";