feat: 文档预览器i18n适配
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
:disabled="!fileMeta"
|
:disabled="!fileMeta"
|
||||||
@click="openInNewTab"
|
@click="openInNewTab"
|
||||||
>
|
>
|
||||||
在新标签打开
|
{{ $t('document-action.open-in-new-tab') }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="px-3 py-1.5 rounded bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50"
|
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"
|
:disabled="!fileMeta"
|
||||||
@click="download"
|
@click="download"
|
||||||
>
|
>
|
||||||
下载
|
{{ $t('document-action.download') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
<div class="flex-1 overflow-hidden">
|
<div class="flex-1 overflow-hidden">
|
||||||
<!-- 加载状态 -->
|
<!-- 加载状态 -->
|
||||||
<div v-if="pending" class="h-48 grid place-items-center border rounded">
|
<div v-if="pending" class="h-48 grid place-items-center border rounded">
|
||||||
正在加载...
|
{{ $t('loading') }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else-if="errorText"
|
v-else-if="errorText"
|
||||||
|
|||||||
@ -87,6 +87,7 @@
|
|||||||
},
|
},
|
||||||
"document-action": {
|
"document-action": {
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
|
"open-in-new-tab": "Open in New Tab",
|
||||||
"preview": "Preview"
|
"preview": "Preview"
|
||||||
},
|
},
|
||||||
"mobile-menu": {
|
"mobile-menu": {
|
||||||
|
|||||||
@ -86,6 +86,7 @@
|
|||||||
},
|
},
|
||||||
"document-action": {
|
"document-action": {
|
||||||
"download": "下载",
|
"download": "下载",
|
||||||
|
"open-in-new-tab": "在新标签页打开",
|
||||||
"preview": "预览"
|
"preview": "预览"
|
||||||
},
|
},
|
||||||
"mobile-menu": {
|
"mobile-menu": {
|
||||||
|
|||||||
Reference in New Issue
Block a user