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,7 +54,8 @@
async function displaya(message:string){ async function displaya(message:string){
if($DataBase.autoTranslate && $DataBase.translator !== ''){ if($DataBase.autoTranslate && $DataBase.translator !== ''){
msgDisplay = replacePlaceholders(message, name) if(msgTranslated==='')
msgDisplay = replacePlaceholders(message, name)
msgDisplay = await translate(replacePlaceholders(message, name), false) msgDisplay = await translate(replacePlaceholders(message, name), false)
msgTranslated = msgDisplay msgTranslated = msgDisplay
translated = true; translated = true;