Fixed a bug where the original text flickered
when translating streaming
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
async function displaya(message:string){
|
async function displaya(message:string){
|
||||||
if($DataBase.autoTranslate && $DataBase.translator !== ''){
|
if($DataBase.autoTranslate && $DataBase.translator !== ''){
|
||||||
|
if(msgTranslated==='')
|
||||||
msgDisplay = replacePlaceholders(message, name)
|
msgDisplay = replacePlaceholders(message, name)
|
||||||
msgDisplay = await translate(replacePlaceholders(message, name), false)
|
msgDisplay = await translate(replacePlaceholders(message, name), false)
|
||||||
msgTranslated = msgDisplay
|
msgTranslated = msgDisplay
|
||||||
|
|||||||
Reference in New Issue
Block a user