mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-24 08:02:18 +02:00
format
This commit is contained in:
parent
bcbaf52777
commit
8d5a418bee
@ -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 New Issue
Block a user