feat: Add translator input language selection in LanguageSettings.svelte

This commit is contained in:
Junha Heo
2024-08-25 21:01:22 +09:00
parent fff99d134e
commit 7fa5289c45
3 changed files with 22 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ async function translateMain(text:string, arg:{from:string, to:string, host:stri
}
const url = `https://${arg.host}/translate_a/single?client=gtx&dt=t&sl=auto&tl=${arg.to}&q=` + encodeURIComponent(text)
const url = `https://${arg.host}/translate_a/single?client=gtx&dt=t&sl=${db.translatorInputLanguage}&tl=${arg.to}&q=` + encodeURIComponent(text)