feat: 补全i18n适配 #57

Manually merged
remilia merged 8 commits from feat/i18n into master 2025-11-04 14:37:27 +08:00
11 changed files with 112 additions and 39 deletions
Showing only changes of commit 128bdf5a16 - Show all commits

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": {