mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-05 23:40:13 +01:00
Fix array
This commit is contained in:
parent
e79089b5c1
commit
6621c51b52
@ -273,7 +273,7 @@ def create_app(args):
|
||||
type: string
|
||||
description: Human-readable language name (in English)
|
||||
"""
|
||||
return jsonify([{"code": l.code, "name": l.name, "targets": [language_pairs.get(l.code, [])]} for l in languages])
|
||||
return jsonify([{"code": l.code, "name": l.name, "targets": language_pairs.get(l.code, [])} for l in languages])
|
||||
|
||||
# Add cors
|
||||
@app.after_request
|
||||
|
Loading…
Reference in New Issue
Block a user