mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 20:30:39 +00:00
Handle empty translation
This commit is contained in:
parent
b87b210bfc
commit
0478d4ee2c
2 changed files with 4 additions and 4 deletions
|
@ -501,9 +501,9 @@ def create_app(args):
|
|||
)
|
||||
else:
|
||||
return jsonify(
|
||||
{
|
||||
{
|
||||
"translatedText": results
|
||||
}
|
||||
}
|
||||
)
|
||||
else:
|
||||
translator = src_langs[0].get_translation(tgt_lang)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue