feat: add option to show translation loading
This commit is contained in:
@@ -162,6 +162,10 @@
|
||||
}
|
||||
}
|
||||
if(translateText){
|
||||
if (!retranslate && DBState.db.showTranslationLoading) {
|
||||
lastParsed = `<div class="flex justify-center items-center"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-textcolor"></div></div>`
|
||||
}
|
||||
|
||||
let doRetranslate = retranslate
|
||||
retranslate = false
|
||||
if(DBState.db.translatorType === 'llm' && DBState.db.translateBeforeHTMLFormatting){
|
||||
|
||||
@@ -58,4 +58,8 @@
|
||||
|
||||
<div class="flex items-center mt-2">
|
||||
<Check bind:check={DBState.db.bulkEnabling} name={language.bulkEnabling}/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center mt-2">
|
||||
<Check bind:check={DBState.db.showTranslationLoading} name={language.showTranslationLoading}/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user