Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
103
export
function
cancelAllTranslations() {
104
if
(isDev) {
105
console.log(
'[翻译API] 取消所有等待中的翻译任务'
);
106
}
107
clearTranslationQueue();
108
}
109
110
/**
111
* 获取当前翻译队列的状态
Callers
2
main
Function · 0.90
restoreOriginalContent
Function · 0.90
Calls
1
clearTranslationQueue
Function · 0.90
Tested by
no test coverage detected