forked from mirrors/LibreTranslate
format
This commit is contained in:
parent
bcbaf52777
commit
8d5a418bee
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -362,8 +362,6 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
translateFileRequest.onerror = function() {
|
||||
self.error = "Error while calling /translate_file";
|
||||
self.loadingFileTranslation = false;
|
||||
|
|
Loading…
Reference in a new issue