fix: subtitle

This commit is contained in:
Gabe
2025-10-12 11:51:41 +08:00
parent 3fda4d0da9
commit 7a36251d3f
2 changed files with 7 additions and 0 deletions

View File

@@ -1623,6 +1623,11 @@ export const I18N = {
en: `Starting to process subtitle data...`,
zh_TW: `开始处理字幕数据...`,
},
subtitle_data_is_ready: {
zh: `字幕数据已准备就绪请点击KT按钮加载`,
en: `The subtitle data is ready, please click the KT button to load it`,
zh_TW: `字幕資料已準備就緒請點擊KT按鈕加載`,
},
};
export const i18n = (lang) => (key) => I18N[key]?.[lang] || "";

View File

@@ -394,6 +394,8 @@ class YouTubeCaptionProvider {
this.#destroyManager();
if (this.#enabled) {
this.#startManager();
} else {
this.#showNotification(this.#i18n("subtitle_data_is_ready"));
}
}