节点执行状态增加多语言支持

This commit is contained in:
jingrow 2025-09-15 20:38:56 +08:00
parent 5275675868
commit c8bc2fbd92
2 changed files with 7 additions and 1 deletions

View File

@ -48,7 +48,7 @@
{{ item.nodeLabel || (getNodeMetadataByType(item.nodeType)?.label || item.nodeType) }}
</span>
<span class="history-status-badge" :class="item.status">
{{ item.status }}
{{ t(item.status) }}
</span>
</div>
<div class="history-item-meta">
@ -128,6 +128,7 @@
<script setup>
import { ref } from 'vue';
import { t } from '@/shared/i18n';
import { useMessage } from 'naive-ui';
import { getNodeMetadataByType } from '../utils/nodeMetadata';

View File

@ -280,6 +280,11 @@
"Copied": "已复制",
"Flow is executing, please wait": "流程正在执行中,请等待完成",
"Execution error": "执行出错",
"success": "成功",
"failed": "失败",
"executing": "执行中",
"pending": "待执行",
"error": "错误",
"Unsaved": "未保存",
"Saved": "已保存",
"Copy failed, please copy manually": "复制失败,请手动复制",