feat: 补全i18n适配
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m5s

- 为各个页面补全i18n文本
This commit is contained in:
2025-11-04 14:37:06 +08:00
14 changed files with 130 additions and 45 deletions

View File

@ -8,15 +8,17 @@
</template>
<dl class="text-gray-600 space-y-1 mb-6">
<div>
<dt class="font-semibold inline">类型</dt>
<dt class="font-semibold inline">{{ $t('document-meta.type') }}</dt>
<dd class="inline">{{ file.type }}</dd>
</div>
<div>
<dt class="font-semibold inline">大小</dt>
<dt class="font-semibold inline">{{ $t('document-meta.size') }}</dt>
<dd class="inline">{{ formatFileSize(file.filesize) }}</dd>
</div>
<div>
<dt class="font-semibold inline">上传时间</dt>
<dt class="font-semibold inline">
{{ $t('document-meta.upload-at') }}
</dt>
<dd class="inline">
{{ new Date(file.uploaded_on).toLocaleDateString() }}
</dd>
@ -24,10 +26,12 @@
</dl>
<template #footer>
<div class="button-group">
<el-button type="primary" @click="handleDownload">下载</el-button>
<el-button v-if="file.previewable" @click="handlePreview"
>预览</el-button
>
<el-button type="primary" @click="handleDownload">{{
$t('document-action.download')
}}</el-button>
<el-button v-if="file.previewable" @click="handlePreview">{{
$t('document-action.preview')
}}</el-button>
</div>
</template>
</el-card>

View File

@ -1,8 +1,8 @@
<template>
<section class="homepage-section">
<h2>推荐产品</h2>
<h2>{{ $t('homepage.recommended-products') }}</h2>
<p>
探索我们的精选产品满足您的各种需求无论是创新技术还是经典设计我们都为您提供优质选择
{{ $t('homepage.recommended-products-desc') }}
</p>
<div v-if="!pending">
<el-carousel

View File

@ -1,7 +1,7 @@
<template>
<section class="homepage-section">
<h2>推荐解决方案</h2>
<p>了解我们的定制解决方案帮助您优化业务流程提高效率</p>
<h2>{{ $t('homepage.recommended-solutions') }}</h2>
<p>{{ $t('homepage.recommended-solutions-desc') }}</p>
<div v-if="!pending">
<el-carousel
class="recommend-carousel"

View File

@ -20,7 +20,7 @@
<el-row>
<NuxtLink class="card-link" :to="to">
<el-button class="card-button" round>
<span>了解更多 > </span>
<span>{{ $t('learn-more') }} > </span>
</el-button>
</NuxtLink>
</el-row>

View File

@ -21,10 +21,10 @@
const activeTab = ref(props.modelValue || '');
const options = [
{ label: '服务支持', value: '' },
{ label: '常见问题', value: 'faq' },
{ label: '文档资料', value: 'documents' },
{ label: '联系售后', value: 'contact-us' },
{ label: $t('navigation.support'), value: '' },
{ label: $t('navigation.faq'), value: 'faq' },
{ label: $t('navigation.documents'), value: 'documents' },
{ label: $t('navigation.contact-info'), value: 'contact-us' },
];
const handleSegmentedChange = (value: string) => {