mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-15 16:35:39 +08:00
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:
parent
46feac1765
commit
e6b36b0a1b
|
|
@ -609,5 +609,6 @@
|
||||||
"请输入迭代次数": "Please enter iterations",
|
"请输入迭代次数": "Please enter iterations",
|
||||||
"获取场景列表失败": "Failed to fetch scenario list",
|
"获取场景列表失败": "Failed to fetch scenario list",
|
||||||
"搜索场景": "Search scenarios",
|
"搜索场景": "Search scenarios",
|
||||||
"节点": "Nodes"
|
"节点": "Nodes",
|
||||||
|
"确认删除节点吗": "Are you sure you want to delete this node?"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -609,5 +609,6 @@
|
||||||
"请输入迭代次数": "请输入迭代次数",
|
"请输入迭代次数": "请输入迭代次数",
|
||||||
"获取场景列表失败": "获取场景列表失败",
|
"获取场景列表失败": "获取场景列表失败",
|
||||||
"搜索场景": "搜索场景",
|
"搜索场景": "搜索场景",
|
||||||
"节点": "节点"
|
"节点": "节点",
|
||||||
|
"确认删除节点吗": "确认删除节点吗?"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,11 +88,11 @@ const WorkflowEditorModal: React.FC<WorkflowEditorModalProps> = ({
|
||||||
|
|
||||||
const getNodeTypeName = (type: NodeType): string => {
|
const getNodeTypeName = (type: NodeType): string => {
|
||||||
const typeMap: Record<NodeType, string> = {
|
const typeMap: Record<NodeType, string> = {
|
||||||
http: 'HTTP请求',
|
http: intl.get('HTTP请求'),
|
||||||
script: '脚本执行',
|
script: intl.get('脚本执行'),
|
||||||
condition: '条件判断',
|
condition: intl.get('条件判断'),
|
||||||
delay: '延迟',
|
delay: intl.get('延迟'),
|
||||||
loop: '循环',
|
loop: intl.get('循环'),
|
||||||
};
|
};
|
||||||
return typeMap[type];
|
return typeMap[type];
|
||||||
};
|
};
|
||||||
|
|
@ -105,7 +105,7 @@ const WorkflowEditorModal: React.FC<WorkflowEditorModalProps> = ({
|
||||||
|
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: intl.get('确认删除节点'),
|
title: intl.get('确认删除节点'),
|
||||||
content: `${intl.get('确认')}${intl.get('删除节点')}${intl.get('吗')}?`,
|
content: intl.get('确认删除节点吗'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
setLocalGraph({
|
setLocalGraph({
|
||||||
...localGraph,
|
...localGraph,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user