Fix translation issue in input auto-translation field.

This commit is contained in:
Bo26fhmC5M
2024-11-30 11:16:47 +09:00
parent 5ebb934d3b
commit 7c6ab023d1

View File

@@ -111,7 +111,7 @@ export async function runTranslator(text:string, reverse:boolean, from:string,ta
async function translateMain(text:string, arg:{from:string, to:string, host:string}){
let db = getDatabase()
if(db.translatorType === 'llm'){
const tr = db.translator || 'en'
const tr = arg.to || 'en'
return translateLLM(text, {to: tr})
}
if(db.translatorType === 'deepl'){