fix language

pull/17608/head
fuwx 1 year ago
parent d51ca40781
commit 9a4eee6a29
No known key found for this signature in database
GPG Key ID: C8FA8C18DFB4702B

@ -601,7 +601,7 @@ class APOToolBuiltinListApi(Resource):
tenant_id,
args["tool_type"],
args.get("query", None),
args.get("language", "zh")
args.get("language", "zh_Hans")
)
]
)

@ -348,7 +348,7 @@ class BuiltinToolManageService:
)
)
else:
if language == "zh":
if language == "zh_Hans":
match_raw = [tool.entity.identity.label.zh_Hans for tool in tools]
else:
match_raw = [tool.entity.identity.label.en_US for tool in tools]

Loading…
Cancel
Save