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