Add await in translateLLM
This commit is contained in:
@@ -266,7 +266,7 @@ export async function translateHTML(html: string, reverse:boolean, charArg:simpl
|
|||||||
if(db.translatorType === 'llm'){
|
if(db.translatorType === 'llm'){
|
||||||
const tr = db.translator || 'en'
|
const tr = db.translator || 'en'
|
||||||
const from = db.translatorInputLanguage
|
const from = db.translatorInputLanguage
|
||||||
const r = translateLLM(html, {to: tr, from: from, regenerate})
|
const r = await translateLLM(html, {to: tr, from: from, regenerate})
|
||||||
if(db.playMessageOnTranslateEnd){
|
if(db.playMessageOnTranslateEnd){
|
||||||
const audio = new Audio(sendSound);
|
const audio = new Audio(sendSound);
|
||||||
audio.play();
|
audio.play();
|
||||||
|
|||||||
Reference in New Issue
Block a user