mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 20:30:39 +00:00
Only show target languages, check swap, bump version
This commit is contained in:
parent
0875fdc433
commit
2b0074b94f
4 changed files with 22 additions and 3 deletions
|
@ -272,6 +272,11 @@ def create_app(args):
|
|||
name:
|
||||
type: string
|
||||
description: Human-readable language name (in English)
|
||||
targets:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: Supported target language codes
|
||||
"""
|
||||
return jsonify([{"code": l.code, "name": l.name, "targets": language_pairs.get(l.code, [])} for l in languages])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue