#2065 Add option to translate text before classification

This commit is contained in:
Cohee
2024-04-11 22:09:05 +03:00
parent 210f388d7a
commit 6290dff3d9
3 changed files with 14 additions and 0 deletions

View File

@ -509,6 +509,8 @@ const handleOutgoingMessage = createEventHandler(translateOutgoingMessage, () =>
const handleImpersonateReady = createEventHandler(translateImpersonate, () => shouldTranslate(incomingTypes));
const handleMessageEdit = createEventHandler(translateMessageEdit, () => true);
window['translate'] = translate;
jQuery(() => {
const html = `
<div class="translation_settings">