Fixed a bug where the original text flickered

when translating streaming
This commit is contained in:
LL
2023-05-29 02:55:15 +09:00
parent 2039797cad
commit ae78fe80db

View File

@@ -54,6 +54,7 @@
async function displaya(message:string){
if($DataBase.autoTranslate && $DataBase.translator !== ''){
if(msgTranslated==='')
msgDisplay = replacePlaceholders(message, name)
msgDisplay = await translate(replacePlaceholders(message, name), false)
msgTranslated = msgDisplay