Final i18n fixes: Use consistent translation approach for all user messages

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-23 05:44:11 +00:00
parent 46feac1765
commit e6b36b0a1b
3 changed files with 10 additions and 8 deletions

View File

@ -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?"
}

View File

@ -609,5 +609,6 @@
"请输入迭代次数": "请输入迭代次数",
"获取场景列表失败": "获取场景列表失败",
"搜索场景": "搜索场景",
"节点": "节点"
"节点": "节点",
"确认删除节点吗": "确认删除节点吗?"
}

View File

@ -88,11 +88,11 @@ const WorkflowEditorModal: React.FC<WorkflowEditorModalProps> = ({
const getNodeTypeName = (type: NodeType): string => {
const typeMap: Record<NodeType, string> = {
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<WorkflowEditorModalProps> = ({
Modal.confirm({
title: intl.get('确认删除节点'),
content: `${intl.get('确认')}${intl.get('删除节点')}${intl.get('吗')}`,
content: intl.get('确认删除节点吗'),
onOk: () => {
setLocalGraph({
...localGraph,