mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-27 19:29:52 +08:00
更新国际化支持:为下载列表和工作流组件添加多语言文本,提升用户体验
This commit is contained in:
@@ -516,6 +516,9 @@ export default {
|
||||
downloads: 'Downloads',
|
||||
},
|
||||
},
|
||||
title: 'Workflow',
|
||||
noWorkflow: 'No Workflow',
|
||||
noWorkflowDescription: 'Click the add button to create a workflow task.',
|
||||
},
|
||||
dashboard: {
|
||||
storage: 'Storage',
|
||||
@@ -660,6 +663,9 @@ export default {
|
||||
downloading: {
|
||||
noDownloader: 'No Downloader',
|
||||
configureDownloader: 'Please configure and enable a downloader in settings first.',
|
||||
title: 'Downloading',
|
||||
noTask: 'No Task',
|
||||
noTaskDescription: 'Downloading tasks will be displayed here.',
|
||||
},
|
||||
resource: {
|
||||
searchResults: 'Resource Search Results',
|
||||
|
||||
@@ -498,6 +498,9 @@ export default {
|
||||
exclude: '排除(关键字、正则式)',
|
||||
ruleGroups: '过滤规则组',
|
||||
},
|
||||
title: '工作流',
|
||||
noWorkflow: '没有工作流',
|
||||
noWorkflowDescription: '点击添加按钮创建工作流任务。',
|
||||
},
|
||||
dashboard: {
|
||||
storage: '存储空间',
|
||||
@@ -641,6 +644,9 @@ export default {
|
||||
downloading: {
|
||||
noDownloader: '没有下载器',
|
||||
configureDownloader: '请先在设置中正确配置并启用下载器。',
|
||||
title: '下载',
|
||||
noTask: '没有任务',
|
||||
noTaskDescription: '正在下载的任务将会显示在这里。',
|
||||
},
|
||||
resource: {
|
||||
searchResults: '资源搜索结果',
|
||||
|
||||
@@ -515,6 +515,9 @@ export default {
|
||||
downloads: '下載任務',
|
||||
},
|
||||
},
|
||||
title: '工作流',
|
||||
noWorkflow: '沒有工作流',
|
||||
noWorkflowDescription: '點擊添加按鈕創建工作流任務。',
|
||||
},
|
||||
dashboard: {
|
||||
storage: '存儲空間',
|
||||
@@ -658,6 +661,9 @@ export default {
|
||||
downloading: {
|
||||
noDownloader: '沒有下載器',
|
||||
configureDownloader: '請先在設置中正確配置並啟用下載器。',
|
||||
title: '下載',
|
||||
noTask: '沒有任務',
|
||||
noTaskDescription: '正在下載的任務將會顯示在這裡。',
|
||||
},
|
||||
resource: {
|
||||
searchResults: '資源搜索結果',
|
||||
|
||||
@@ -84,8 +84,8 @@ onUnmounted(() => {
|
||||
<NoDataFound
|
||||
v-if="filteredDataList.length === 0 && isRefreshed"
|
||||
error-code="404"
|
||||
:error-title="t('downloading.noTasks')"
|
||||
:error-description="t('downloading.tasksWillShowHere')"
|
||||
:error-title="t('downloading.noTask')"
|
||||
:error-description="t('downloading.noTaskDescription')"
|
||||
/>
|
||||
</VPullToRefresh>
|
||||
</template>
|
||||
|
||||
@@ -8,7 +8,9 @@ import NoDataFound from '@/components/NoDataFound.vue'
|
||||
import { useDynamicButton } from '@/composables/useDynamicButton'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
// 国际化
|
||||
const { t } = useI18n()
|
||||
|
||||
// APP
|
||||
const display = useDisplay()
|
||||
const appMode = inject('pwaMode') && display.mdAndDown.value
|
||||
@@ -56,7 +58,7 @@ useDynamicButton({
|
||||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<VPageContentTitle :title="t('navItems.workflow')" />
|
||||
<VPageContentTitle :title="t('workflow.title')" />
|
||||
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
|
||||
<VRow v-if="workflowList.length > 0" class="match-height">
|
||||
<VCol cols="12" md="6" lg="4" v-for="item in workflowList" :key="item.id">
|
||||
@@ -67,7 +69,7 @@ useDynamicButton({
|
||||
v-if="workflowList.length === 0 && isRefreshed"
|
||||
error-code="404"
|
||||
:error-title="t('workflow.noWorkflow')"
|
||||
:error-description="t('workflow.clickToAdd')"
|
||||
:error-description="t('workflow.noWorkflowDescription')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user