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