MCPcopy
hub / github.com/Bistutu/FluentRead / cancelAllTranslations

Function cancelAllTranslations

entrypoints/utils/translateApi.ts:103–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 * 当用户离开页面或主动取消翻译时,清空翻译队列
102 */
103export function cancelAllTranslations() {
104 if (isDev) {
105 console.log('[翻译API] 取消所有等待中的翻译任务');
106 }
107 clearTranslationQueue();
108}
109
110/**
111 * 获取当前翻译队列的状态

Callers 2

mainFunction · 0.90
restoreOriginalContentFunction · 0.90

Calls 1

clearTranslationQueueFunction · 0.90

Tested by

no test coverage detected