更新国际化支持:为存储、媒体类型、通知开关及操作步骤等组件添加多语言文本,提升用户体验

This commit is contained in:
jxxghp
2025-04-29 13:24:27 +08:00
parent b75c93231e
commit b772e2d9ef
21 changed files with 566 additions and 386 deletions

View File

@@ -3,7 +3,7 @@ import api from '@/api'
import useDragAndDrop from '@core/utils/workflow'
import { useDisplay } from 'vuetify'
import { useI18n } from 'vue-i18n'
import { getActionStepText } from '@/types/i18n-type'
import { actionStepDict } from '@/api/constants'
interface ActionItem {
name: string
@@ -95,6 +95,12 @@ watch(
},
)
// 获取动作步骤文本
function getActionStepText(type: string | undefined) {
if (!type) return ''
return actionStepDict[type]
}
onMounted(() => {
load_actions()
})