fix: i18n error (#12052)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
0ea6a926c5
commit
7a24c957bd
2 changed files with 6 additions and 7 deletions
|
|
@ -275,10 +275,7 @@ class ToolTransformService:
|
|||
author=tool.identity.author,
|
||||
name=tool.identity.name,
|
||||
label=tool.identity.label,
|
||||
description=I18nObject(
|
||||
en_US=tool.description.human if tool.description else "",
|
||||
zh_Hans=tool.description.human if tool.description else "",
|
||||
),
|
||||
description=tool.description.human if tool.description else "", # type: ignore
|
||||
parameters=current_parameters,
|
||||
labels=labels,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue