Skip to content

Commit

Permalink
Improve localization with new WorkflowLoop entries and tips
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonBY committed Oct 1, 2024
1 parent fbad9c2 commit d84ff92
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 2 deletions.
55 changes: 54 additions & 1 deletion frontend/src/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export default {
'back': 'Back',
'previous_step': 'Previous step',
'next_step': 'Next step',
'preview': 'Preview',
'title': 'Title',
'description': 'Description',
'content': 'Content',
'save_success': 'Save success',
'card_view': 'Card view',
'table_view': 'Table view',
Expand Down Expand Up @@ -760,6 +762,8 @@ export default {
'variable_fields': 'Variables',
'template': 'Template',
'drag_to_insert': 'Click or drag to insert',
'format_fields': 'Format fields',
'format_fields_tip': 'Quickly use XML tags to format and fill in the template with variable fields',
},
nodes: {
common: {
Expand Down Expand Up @@ -1659,6 +1663,55 @@ export default {
'default_value': 'Default value (when Key does not exist)',
'output': 'Output',
},
WorkflowLoop: {
'title': 'Workflow Loop',
'description': 'Used to loop execution of workflows.',
'select_workflow': 'Select workflow',
'selected_workflow': 'Selected workflow',
'workflow_id': 'Workflow ID',
'fail_all': 'If this node fails, the entire workflow fails',
'list_input': 'List input',
'workflow_fields': 'Workflow fields',
'workflow_fields_initial_values': 'Initial values',
'workflow_fields_assignment_in_loop': 'Assignment in loop',
'constant': 'Constant',
'input_field': 'Input field',
'output_field': 'Output field last loop',
'output_field_cumulative': 'Output field cumulative',
'output_field_cumulative_tip': 'Accumulate the output results of previous loops, separated by line breaks',
'loop_count': 'Loop count',
'max_loop_count': 'Max loop count',
'source': 'Source',
'value': 'Value',
'source_input_field': 'Source input field',
'source_output_field': 'Source output field',
'loop_end_condition': 'Loop end condition',
'loop_end_condition_loop_count': 'Loop count',
'loop_end_condition_output_field_condition': 'Output field condition',
'loop_end_condition_extra_workflow_judgement': 'Extra workflow judgement',
'loop_end_condition_ai_model_judgement': 'AI model judgement',
'output_field_condition_field': 'Condition field',
'output_field_condition_operator': 'Condition judgment operator',
'output_field_condition_operator_equal': 'Equal',
'output_field_condition_operator_not_equal': 'Not equal',
'output_field_condition_operator_greater_than': 'Greater than',
'output_field_condition_operator_less_than': 'Less than',
'output_field_condition_operator_greater_than_or_equal': 'Greater than or equal',
'output_field_condition_operator_less_than_or_equal': 'Less than or equal',
'output_field_condition_operator_include': 'Left include right',
'output_field_condition_operator_not_include': 'Left not include right',
'output_field_condition_operator_is_empty': 'Is empty',
'output_field_condition_operator_is_not_empty': 'Is not empty',
'output_field_condition_operator_starts_with': 'Left starts with right',
'output_field_condition_operator_ends_with': 'Left ends with right',
'output_field_condition_true_output': 'Output when the condition is met',
'output_field_condition_false_output': 'Output when the condition is not met',
'output_field_condition_value': 'Condition value',
'judgement_model': 'Judgement model',
'judgement_prompt': 'Judgement prompt',
'judgement_end_output': 'Judgement end output',
'judgement_end_output_tip': 'The loop ends when the model outputs this value',
},
},
mediaProcessing: {
title: 'Multimodal',
Expand Down
55 changes: 54 additions & 1 deletion frontend/src/locales/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export default {
'back': '返回',
'previous_step': '上一步',
'next_step': '下一步',
'preview': '预览',
'title': '标题',
'description': '描述',
'content': '内容',
'save_success': '保存成功',
'card_view': '卡片视图',
'table_view': '表格视图',
Expand Down Expand Up @@ -760,6 +762,8 @@ export default {
'variable_fields': '变量字段',
'template': '模板',
'drag_to_insert': '单击或拖拽插入',
'format_fields': '格式化字段',
'format_fields_tip': '快速用 XML 标签将变量字段格式化填入模板',
},
nodes: {
common: {
Expand Down Expand Up @@ -1659,6 +1663,55 @@ export default {
'default_value': '默认值(当 Key 不存在时)',
'output': '输出',
},
WorkflowLoop: {
'title': '工作流循环',
'description': '用于循环执行工作流。',
'select_workflow': '选择工作流',
'selected_workflow': '已选择工作流',
'workflow_id': '工作流 ID',
'fail_all': '该节点失败则工作流整体失败',
'list_input': '列表形式输入',
'workflow_fields': '工作流字段',
'workflow_fields_initial_values': '初始值',
'workflow_fields_assignment_in_loop': '循环内赋值',
'constant': '固定值',
'input_field': '输入字段',
'output_field': '输出字段上次循环结果',
'output_field_cumulative': '输出字段累加结果',
'output_field_cumulative_tip': '将之前每次循环的输出结果累加,用换行符分隔',
'loop_count': '循环次数',
'max_loop_count': '最大循环次数',
'source': '赋值来源',
'value': '值',
'source_input_field': '来源输入字段',
'source_output_field': '来源输出字段',
'loop_end_condition': '循环结束条件',
'loop_end_condition_loop_count': '循环次数',
'loop_end_condition_output_field_condition': '输出字段条件',
'loop_end_condition_extra_workflow_judgement': '额外工作流判断',
'loop_end_condition_ai_model_judgement': 'AI 模型判断',
'output_field_condition_field': '条件字段',
'output_field_condition_operator': '条件判断运算符',
'output_field_condition_operator_equal': '等于',
'output_field_condition_operator_not_equal': '不等于',
'output_field_condition_operator_greater_than': '大于',
'output_field_condition_operator_less_than': '小于',
'output_field_condition_operator_greater_than_or_equal': '大于等于',
'output_field_condition_operator_less_than_or_equal': '小于等于',
'output_field_condition_operator_include': '左边包含右边',
'output_field_condition_operator_not_include': '左边不包含右边',
'output_field_condition_operator_is_empty': '为空',
'output_field_condition_operator_is_not_empty': '不为空',
'output_field_condition_operator_starts_with': '左边以右边开头',
'output_field_condition_operator_ends_with': '左边以右边结尾',
'output_field_condition_true_output': '满足条件时的输出',
'output_field_condition_false_output': '不满足条件时的输出',
'output_field_condition_value': '条件值',
'judgement_model': '模型',
'judgement_prompt': '模型判断提示词',
'judgement_end_output': '模型判断结束输出',
'judgement_end_output_tip': '当模型输出此值时,循环结束',
},
},
mediaProcessing: {
title: '多模态处理',
Expand Down

0 comments on commit d84ff92

Please sign in to comment.