Skip to content

Commit 6fd4c1f

Browse files
perf: Organize translation files
1 parent f2266c8 commit 6fd4c1f

File tree

127 files changed

+846
-934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+846
-934
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
</div>
230230
<div class="card-never border-r-6 mt-8" v-if="data.type == WorkflowType.AiChat">
231231
<h5 class="p-8-12">
232-
{{ $t('views.workflow.nodes.aiChatNode.think') }}
232+
{{ $t('workflow.nodes.aiChatNode.think') }}
233233
</h5>
234234
<div class="p-8-12 border-t-dashed lighter pre-wrap">
235235
{{ data.reasoning_content || '-' }}
@@ -672,7 +672,7 @@
672672
</div>
673673
<div class="card-never border-r-6 mt-8">
674674
<h5 class="p-8-12">
675-
{{ $t('views.workflow.nodes.imageGenerateNode.negative_prompt.label') }}
675+
{{ $t('workflow.nodes.imageGenerateNode.negative_prompt.label') }}
676676
</h5>
677677
<div class="p-8-12 border-t-dashed lighter pre-wrap">
678678
{{ data.negative_prompt || '-' }}
@@ -710,7 +710,7 @@
710710
</div>
711711
<div class="card-never border-r-6 mt-8">
712712
<h5 class="p-8-12">
713-
{{ $t('views.workflow.nodes.imageGenerateNode.negative_prompt.label') }}
713+
{{ $t('workflow.nodes.imageGenerateNode.negative_prompt.label') }}
714714
</h5>
715715
<div class="p-8-12 border-t-dashed lighter pre-wrap">
716716
{{ data.negative_prompt || '-' }}
@@ -749,15 +749,15 @@
749749
</div>
750750
<div class="card-never border-r-6 mt-8">
751751
<h5 class="p-8-12">
752-
{{ $t('views.workflow.nodes.imageGenerateNode.negative_prompt.label') }}
752+
{{ $t('workflow.nodes.imageGenerateNode.negative_prompt.label') }}
753753
</h5>
754754
<div class="p-8-12 border-t-dashed lighter pre-wrap">
755755
{{ data.negative_prompt || '-' }}
756756
</div>
757757
</div>
758758
<div class="card-never border-r-6 mt-8">
759759
<h5 class="p-8-12">
760-
{{ $t('views.workflow.nodes.imageToVideoGenerate.first_frame.label') }}
760+
{{ $t('workflow.nodes.imageToVideoGenerate.first_frame.label') }}
761761
</h5>
762762
<div class="p-8-12 border-t-dashed lighter pre-wrap">
763763
<div v-if="typeof data.first_frame_url === 'string'">
@@ -786,7 +786,7 @@
786786
</div>
787787
<div class="card-never border-r-6 mt-8">
788788
<h5 class="p-8-12">
789-
{{ $t('views.workflow.nodes.imageToVideoGenerate.last_frame.label') }}
789+
{{ $t('workflow.nodes.imageToVideoGenerate.last_frame.label') }}
790790
</h5>
791791
<div class="p-8-12 border-t-dashed lighter pre-wrap">
792792
<div v-if="typeof data.last_frame_url === 'string'">
@@ -890,13 +890,13 @@
890890
<template v-if="data.type === WorkflowType.VariableAggregationNode">
891891
<div class="card-never border-r-6">
892892
<h5 class="p-8-12">
893-
{{ $t('views.workflow.nodes.variableAggregationNode.Strategy') }}
893+
{{ $t('workflow.nodes.variableAggregationNode.Strategy') }}
894894
</h5>
895895
<div class="p-8-12 border-t-dashed lighter pre-wrap">
896896
{{
897897
data.strategy === 'variable_to_json'
898-
? t('views.workflow.nodes.variableAggregationNode.placeholder1')
899-
: t('views.workflow.nodes.variableAggregationNode.placeholder')
898+
? t('workflow.nodes.variableAggregationNode.placeholder1')
899+
: t('workflow.nodes.variableAggregationNode.placeholder')
900900
}}
901901
</div>
902902
</div>
@@ -921,11 +921,13 @@
921921
<h5 class="p-8-12">
922922
{{ $t('common.param.outputParam') }}
923923
</h5>
924-
<div class="p-8-12 border-t-dashed lighter">
925-
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
926-
<span class="color-secondary">{{ i }}:</span> {{ f }}
924+
<el-scrollbar height="200">
925+
<div class="p-8-12 border-t-dashed lighter">
926+
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
927+
<span class="color-secondary">{{ i }}:</span> {{ f }}
928+
</div>
927929
</div>
928-
</div>
930+
</el-scrollbar>
929931
</div>
930932
</template>
931933
<!-- MCP 节点 -->
@@ -943,7 +945,7 @@
943945
</div>
944946
<div class="card-never border-r-6">
945947
<h5 class="p-8-12">
946-
{{ $t('views.workflow.nodes.mcpNode.toolParam') }}
948+
{{ $t('workflow.nodes.mcpNode.toolParam') }}
947949
</h5>
948950
<div class="p-8-12 border-t-dashed lighter">
949951
<div v-for="(value, name) in data.tool_params" :key="name" class="mb-8">
@@ -965,19 +967,19 @@
965967
<!-- 循环 节点 -->
966968
<div class="card-never border-r-6" v-if="data.type === WorkflowType.LoopNode">
967969
<h5 class="p-8-12">
968-
{{ $t('views.workflow.nodes.loopNode.loopSetting') }}
970+
{{ $t('workflow.nodes.loopNode.loopSetting') }}
969971
</h5>
970972

971973
<div class="p-8-12 border-t-dashed lighter">
972974
<div class="mb-8">
973975
<span class="color-secondary">
974-
{{ $t('views.workflow.nodes.loopNode.loopType.label') }}:</span
976+
{{ $t('workflow.nodes.loopNode.loopType.label') }}:</span
975977
>
976978
{{ data.loop_type || '-' }}
977979
</div>
978980
<div>
979981
<span class="color-secondary">
980-
{{ $t('views.workflow.nodes.loopNode.loopArray.label') }}:</span
982+
{{ $t('workflow.nodes.loopNode.loopArray.label') }}:</span
981983
>
982984
{{
983985
data.loop_type === 'NUMBER'
@@ -987,7 +989,7 @@
987989
</div>
988990
</div>
989991
<h5 class="p-8-12">
990-
{{ $t('views.workflow.nodes.loopNode.loopDetail') }}
992+
{{ $t('workflow.nodes.loopNode.loopDetail') }}
991993
</h5>
992994
<div class="p-8-12 border-t-dashed lighter">
993995
<template v-if="data.type === WorkflowType.LoopNode">
@@ -1017,14 +1019,14 @@
10171019
<div class="p-8-12 border-t-dashed lighter">
10181020
<div class="mb-8">
10191021
<span class="color-secondary">
1020-
{{ $t('views.workflow.nodes.loopStartNode.loopItem') }}:</span
1022+
{{ $t('workflow.nodes.loopStartNode.loopItem') }}:</span
10211023
>
10221024

10231025
{{ data.current_item }}
10241026
</div>
10251027
<div class="mb-8">
10261028
<span class="color-secondary">
1027-
{{ $t('views.workflow.nodes.loopStartNode.loopIndex') }}:</span
1029+
{{ $t('workflow.nodes.loopStartNode.loopIndex') }}:</span
10281030
>
10291031

10301032
{{ data.current_index }}
@@ -1042,7 +1044,7 @@
10421044
<div class="p-8-12 border-t-dashed lighter">
10431045
<div class="mb-8">
10441046
<span class="color-secondary">
1045-
{{ $t('views.workflow.nodes.loopContinueNode.isContinue') }}:</span
1047+
{{ $t('workflow.nodes.loopContinueNode.isContinue') }}:</span
10461048
>
10471049

10481050
{{ data.is_continue }}
@@ -1060,7 +1062,7 @@
10601062
<div class="p-8-12 border-t-dashed lighter">
10611063
<div class="mb-8">
10621064
<span class="color-secondary">
1063-
{{ $t('views.workflow.nodes.loopBreakNode.isBreak') }}:</span
1065+
{{ $t('workflow.nodes.loopBreakNode.isBreak') }}:</span
10641066
>
10651067

10661068
{{ data.is_break }}
@@ -1115,7 +1117,7 @@
11151117
</div>
11161118
<div class="mb-8">
11171119
<span class="color-secondary"
1118-
>{{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}:</span
1120+
>{{ $t('workflow.nodes.documentSplitNode.chunk_length.label') }}:</span
11191121
>
11201122
{{ data.chunk_size }}
11211123
</div>

ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
ref="nodeCascaderRef"
3838
:nodeModel="model"
3939
class="w-full"
40-
:placeholder="$t('views.workflow.variable.placeholder')"
40+
:placeholder="$t('workflow.variable.placeholder')"
4141
v-model="formValue.default_value"
4242
/>
4343
</el-form-item>
@@ -78,7 +78,7 @@ const assignment_method_option_list = computed(() => {
7878
]
7979
if (getModel) {
8080
option_list.push({
81-
label: t('views.workflow.variable.Referencing'),
81+
label: t('workflow.variable.Referencing'),
8282
value: 'ref_variables',
8383
})
8484
}
@@ -137,7 +137,7 @@ const default_ref_variables_value_rule = {
137137
validator: (rule: any, value: any, callback: any) => {
138138
if (!(Array.isArray(value) && value.length > 1)) {
139139
callback(
140-
t('views.workflow.variable.Referencing') + t('common.required'),
140+
t('workflow.variable.Referencing') + t('common.required'),
141141
)
142142
}
143143

ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ref="nodeCascaderRef"
4848
:nodeModel="model"
4949
class="w-full"
50-
:placeholder="$t('views.workflow.variable.placeholder')"
50+
:placeholder="$t('workflow.variable.placeholder')"
5151
v-model="formValue.option_list"
5252
/>
5353
</el-form-item>
@@ -150,7 +150,7 @@ const assignment_method_option_list = computed(() => {
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('views.workflow.variable.Referencing'),
153+
label: t('workflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -183,7 +183,7 @@ const default_ref_variables_value_rule = {
183183
console.log(value.length)
184184
if (!(Array.isArray(value) && value.length > 1)) {
185185
callback(
186-
t('views.workflow.variable.Referencing') + t('common.required'),
186+
t('workflow.variable.Referencing') + t('common.required'),
187187
)
188188
}
189189

ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ref="nodeCascaderRef"
4848
:nodeModel="model"
4949
class="w-full"
50-
:placeholder="$t('views.workflow.variable.placeholder')"
50+
:placeholder="$t('workflow.variable.placeholder')"
5151
v-model="formValue.option_list"
5252
/>
5353
</el-form-item>
@@ -159,7 +159,7 @@ const assignment_method_option_list = computed(() => {
159159
]
160160
if (getModel) {
161161
option_list.push({
162-
label: t('views.workflow.variable.Referencing'),
162+
label: t('workflow.variable.Referencing'),
163163
value: 'ref_variables',
164164
})
165165
}
@@ -192,7 +192,7 @@ const default_ref_variables_value_rule = {
192192
console.log(value.length)
193193
if (!(Array.isArray(value) && value.length > 1)) {
194194
callback(
195-
t('views.workflow.variable.Referencing') + t('common.required'),
195+
t('workflow.variable.Referencing') + t('common.required'),
196196
)
197197
}
198198

ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ref="nodeCascaderRef"
4848
:nodeModel="model"
4949
class="w-full"
50-
:placeholder="$t('views.workflow.variable.placeholder')"
50+
:placeholder="$t('workflow.variable.placeholder')"
5151
v-model="formValue.option_list"
5252
/>
5353
</el-form-item>
@@ -150,7 +150,7 @@ const assignment_method_option_list = computed(() => {
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('views.workflow.variable.Referencing'),
153+
label: t('workflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -182,7 +182,7 @@ const default_ref_variables_value_rule = {
182182
console.log(value.length)
183183
if (!(Array.isArray(value) && value.length > 1)) {
184184
callback(
185-
t('views.workflow.variable.Referencing') + t('common.required'),
185+
t('workflow.variable.Referencing') + t('common.required'),
186186
)
187187
}
188188

ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
ref="nodeCascaderRef"
4848
:nodeModel="model"
4949
class="w-full"
50-
:placeholder="$t('views.workflow.variable.placeholder')"
50+
:placeholder="$t('workflow.variable.placeholder')"
5151
v-model="formValue.option_list"
5252
/>
5353
</el-form-item>
@@ -150,7 +150,7 @@ const assignment_method_option_list = computed(() => {
150150
]
151151
if (getModel) {
152152
option_list.push({
153-
label: t('views.workflow.variable.Referencing'),
153+
label: t('workflow.variable.Referencing'),
154154
value: 'ref_variables',
155155
})
156156
}
@@ -183,7 +183,7 @@ const default_ref_variables_value_rule = {
183183
console.log(value.length)
184184
if (!(Array.isArray(value) && value.length > 1)) {
185185
callback(
186-
t('views.workflow.variable.Referencing') + t('common.required'),
186+
t('workflow.variable.Referencing') + t('common.required'),
187187
)
188188
}
189189

ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ref="nodeCascaderRef"
4747
:nodeModel="model"
4848
class="w-full"
49-
:placeholder="$t('views.workflow.variable.placeholder')"
49+
:placeholder="$t('workflow.variable.placeholder')"
5050
v-model="formValue.option_list"
5151
/>
5252
</el-form-item>
@@ -149,7 +149,7 @@ const assignment_method_option_list = computed(() => {
149149
]
150150
if (getModel) {
151151
option_list.push({
152-
label: t('views.workflow.variable.Referencing'),
152+
label: t('workflow.variable.Referencing'),
153153
value: 'ref_variables',
154154
})
155155
}
@@ -182,7 +182,7 @@ const default_ref_variables_value_rule = {
182182
console.log(value.length)
183183
if (!(Array.isArray(value) && value.length > 1)) {
184184
callback(
185-
t('views.workflow.variable.Referencing') + t('common.required'),
185+
t('workflow.variable.Referencing') + t('common.required'),
186186
)
187187
}
188188

ui/src/components/dynamics-form/items/tree/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="card-never border-r-6 mb-16">
44
<el-checkbox
55
v-model="allCheck"
6-
:label="$t('views.document.feishu.allCheck')"
6+
:label="$t('common.allCheck')"
77
size="large"
88
class="ml-24"
99
@change="handleAllCheckChange"

ui/src/components/markdown/ReasoningRander.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="reasoning">
33
<el-button text @click="showThink = !showThink" class="reasoning-button">
4-
{{ $t('views.workflow.nodes.aiChatNode.think') }}
4+
{{ $t('workflow.nodes.aiChatNode.think') }}
55
<el-icon class="ml-4" :class="showThink ? 'rotate-180' : ''"><ArrowDownBold /> </el-icon>
66
</el-button>
77
<el-collapse-transition>

ui/src/components/workflow-dropdown-menu/application/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</el-input>
2424
</div>
2525

26-
<el-tab-pane :label="$t('views.workflow.baseComponent')" name="base">
26+
<el-tab-pane :label="$t('workflow.baseComponent')" name="base">
2727
<el-scrollbar height="400">
2828
<div v-if="filter_menu_nodes.length > 0">
2929
<template v-for="(node, index) in filter_menu_nodes" :key="index">
@@ -67,7 +67,7 @@
6767
</template>
6868
</div>
6969
<div v-else class="ml-16 mt-8">
70-
<el-text type="info">{{ $t('views.workflow.tip.noData') }}</el-text>
70+
<el-text type="info">{{ $t('workflow.tip.noData') }}</el-text>
7171
</div>
7272
</el-scrollbar>
7373
</el-tab-pane>

0 commit comments

Comments
 (0)