mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-06-10 17:39:27 +00:00
fix bug with translations on errors
This commit is contained in:
parent
6f730d493e
commit
4a769e0e12
|
@ -518,7 +518,7 @@ def create_app(args):
|
|||
)
|
||||
]
|
||||
else:
|
||||
source_langs = [{"confidence": 100.0, "language": source_lang} for _ in texts_to_translate]
|
||||
source_langs = [{"confidence": 100.0, "language": source_lang} for _text in texts_to_translate]
|
||||
|
||||
src_langs = [next(iter([l for l in languages if l.code == source_lang["language"]]), None) for source_lang in source_langs]
|
||||
|
||||
|
|
Loading…
Reference in a new issue