feat: 文档预览器i18n适配

This commit is contained in:
2025-11-04 14:20:55 +08:00
parent 9460ad5249
commit 128bdf5a16
3 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,7 @@
:disabled="!fileMeta"
@click="openInNewTab"
>
在新标签打开
{{ $t('document-action.open-in-new-tab') }}
</button>
<button
class="px-3 py-1.5 rounded bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50"
@ -29,7 +29,7 @@
:disabled="!fileMeta"
@click="download"
>
下载
{{ $t('document-action.download') }}
</button>
</div>
</header>
@ -37,7 +37,7 @@
<div class="flex-1 overflow-hidden">
<!-- 加载状态 -->
<div v-if="pending" class="h-48 grid place-items-center border rounded">
正在加载...
{{ $t('loading') }}
</div>
<div
v-else-if="errorText"

View File

@ -87,6 +87,7 @@
},
"document-action": {
"download": "Download",
"open-in-new-tab": "Open in New Tab",
"preview": "Preview"
},
"mobile-menu": {

View File

@ -86,6 +86,7 @@
},
"document-action": {
"download": "下载",
"open-in-new-tab": "在新标签页打开",
"preview": "预览"
},
"mobile-menu": {