Disable LLM translation using DOM parser (#632)

# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
현재 로컬 리스 번역은 경우의수를 충분히 고려하지 않아 번역에 문제가 있습니다. 로컬 리스의 번역 로직을 웹 버전과 동일하게
변경하고 싶습니다.

A translation issues in current local environment because cases are not
sufficiently considered. I want to change local translation logic alike
web version.
This commit is contained in:
kwaroran
2024-09-26 08:40:38 +09:00
committed by GitHub

View File

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