mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-01 05:40:41 +08:00
更新国际化支持:为存储、媒体类型、通知开关及操作步骤等组件添加多语言文本,提升用户体验
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user