Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
30057f01
authored
Sep 09, 2024
by
papapatrick
Committed by
GitHub
Sep 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: workflow i18n (#2645)
* fix: workflow i18n * i18n completion
parent
3ea18531
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
packages/global/core/workflow/template/system/classifyQuestion/index.ts
+3
-3
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeDatasetConcat.tsx
+1
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/templates/JsonEditor.tsx
+2
-2
No files found.
packages/global/core/workflow/template/system/classifyQuestion/index.ts
View file @
30057f01
...
@@ -51,15 +51,15 @@ export const ClassifyQuestionModule: FlowNodeTemplateType = {
...
@@ -51,15 +51,15 @@ export const ClassifyQuestionModule: FlowNodeTemplateType = {
label
:
''
,
label
:
''
,
value
:
[
value
:
[
{
{
value
:
i18nT
(
'workflow:greeting'
)
,
value
:
'Greeting'
,
key
:
'wqre'
key
:
'wqre'
},
},
{
{
value
:
i18nT
(
'workflow:about_xxx_question'
)
,
value
:
'Question regarding xxx'
,
key
:
'sdfa'
key
:
'sdfa'
},
},
{
{
value
:
i18nT
(
'workflow:other_questions'
)
,
value
:
'Other Questions'
,
key
:
'agex'
key
:
'agex'
}
}
]
]
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodeDatasetConcat.tsx
View file @
30057f01
...
@@ -183,7 +183,7 @@ function Reference({
...
@@ -183,7 +183,7 @@ function Reference({
return
(
return
(
<>
<>
<
Flex
alignItems=
{
'center'
}
mb=
{
1
}
>
<
Flex
alignItems=
{
'center'
}
mb=
{
1
}
>
<
FormLabel
required=
{
inputChildren
.
required
}
>
{
inputChildren
.
label
}
</
FormLabel
>
<
FormLabel
required=
{
inputChildren
.
required
}
>
{
t
(
inputChildren
.
label
as
any
)
}
</
FormLabel
>
{
/* value */
}
{
/* value */
}
<
ValueTypeLabel
valueType=
{
inputChildren
.
valueType
}
valueDesc=
{
inputChildren
.
valueDesc
}
/>
<
ValueTypeLabel
valueType=
{
inputChildren
.
valueType
}
valueDesc=
{
inputChildren
.
valueDesc
}
/>
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/templates/JsonEditor.tsx
View file @
30057f01
...
@@ -56,7 +56,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
...
@@ -56,7 +56,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
<
JSONEditor
<
JSONEditor
bg=
{
'white'
}
bg=
{
'white'
}
borderRadius=
{
'sm'
}
borderRadius=
{
'sm'
}
placeholder=
{
item
.
placeholder
}
placeholder=
{
t
(
item
.
placeholder
as
any
)
}
resize
resize
value=
{
value
}
value=
{
value
}
onChange=
{
(
e
)
=>
{
onChange=
{
(
e
)
=>
{
...
@@ -65,7 +65,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
...
@@ -65,7 +65,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
variables=
{
variables
}
variables=
{
variables
}
/>
/>
);
);
},
[
item
.
placeholder
,
update
,
value
,
variables
]);
},
[
item
.
placeholder
,
t
,
update
,
value
,
variables
]);
return
Render
;
return
Render
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment