1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-24 08:02:18 +02:00
This commit is contained in:
Sébastien Thuret 2021-10-25 10:56:17 +02:00
parent bcbaf52777
commit 8d5a418bee
No known key found for this signature in database
GPG Key ID: 4742E2D66933BB08
2 changed files with 1 additions and 3 deletions

View File

@ -584,7 +584,7 @@ def create_app(args):
translated_file_path = argostranslatefiles.translate_file(src_langs[0].get_translation(tgt_lang), filepath)
translated_filename = os.path.basename(translated_file_path)
return jsonify(
{
"translatedFileUrl": url_for('download_file', filename=translated_filename, _external=True)

View File

@ -362,8 +362,6 @@ document.addEventListener('DOMContentLoaded', function(){
}
}
translateFileRequest.onerror = function() {
self.error = "Error while calling /translate_file";
self.loadingFileTranslation = false;