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;