Disable LLM translation using DOM parser

This commit is contained in:
Yuhwan Kim
2024-09-24 15:34:42 +09:00
parent bff871c77f
commit a0d5c59cc1

View File

@@ -239,7 +239,7 @@ export async function translateHTML(html: string, reverse:boolean, charArg:simpl
return html return html
} }
} }
if(db.translatorType === 'llm' && (!(isTauri || Capacitor.isNativePlatform()))){ if(db.translatorType === 'llm'){
const tr = db.translator || 'en' const tr = db.translator || 'en'
return translateLLM(html, {to: tr}) return translateLLM(html, {to: tr})
} }