diff --git a/src/locales/en-US.json b/src/locales/en-US.json index a2ca4525..9bad668c 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -609,5 +609,6 @@ "请输入迭代次数": "Please enter iterations", "获取场景列表失败": "Failed to fetch scenario list", "搜索场景": "Search scenarios", - "节点": "Nodes" + "节点": "Nodes", + "确认删除节点吗": "Are you sure you want to delete this node?" } diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 8fbcb746..3831d431 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -609,5 +609,6 @@ "请输入迭代次数": "请输入迭代次数", "获取场景列表失败": "获取场景列表失败", "搜索场景": "搜索场景", - "节点": "节点" + "节点": "节点", + "确认删除节点吗": "确认删除节点吗?" } diff --git a/src/pages/scenario/workflowEditorModal.tsx b/src/pages/scenario/workflowEditorModal.tsx index 366907eb..67b264a3 100644 --- a/src/pages/scenario/workflowEditorModal.tsx +++ b/src/pages/scenario/workflowEditorModal.tsx @@ -88,11 +88,11 @@ const WorkflowEditorModal: React.FC = ({ const getNodeTypeName = (type: NodeType): string => { const typeMap: Record = { - http: 'HTTP请求', - script: '脚本执行', - condition: '条件判断', - delay: '延迟', - loop: '循环', + http: intl.get('HTTP请求'), + script: intl.get('脚本执行'), + condition: intl.get('条件判断'), + delay: intl.get('延迟'), + loop: intl.get('循环'), }; return typeMap[type]; }; @@ -105,7 +105,7 @@ const WorkflowEditorModal: React.FC = ({ Modal.confirm({ title: intl.get('确认删除节点'), - content: `${intl.get('确认')}${intl.get('删除节点')}${intl.get('吗')}?`, + content: intl.get('确认删除节点吗'), onOk: () => { setLocalGraph({ ...localGraph,