mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
Fix status message during translation
This commit is contained in:
@ -215,7 +215,7 @@
|
||||
loadedModels.push(model);
|
||||
}
|
||||
|
||||
updateStatus(getMessage("Downloading model..."), "info");
|
||||
updateStatus(getMessage("Translating..."), "info");
|
||||
updateProgress(50);
|
||||
|
||||
// Use the translator's translate method
|
||||
@ -376,7 +376,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
showLoader(["#loader-container"], true);
|
||||
updateStatus(getMessage("Translating..."), "info");
|
||||
|
||||
try {
|
||||
@ -386,8 +385,6 @@
|
||||
} catch (error) {
|
||||
displayTranslation(getMessage("Translation failed: ") + error.message);
|
||||
updateStatus(getMessage("Translation failed"), "error");
|
||||
} finally {
|
||||
showLoader(["#loader-container"], false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user