From 0403a8375102e1049150927a55d4ecadb5b15895 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 4 Nov 2025 13:52:35 +0800 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20support=E9=A1=B5i18n=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SupportTabs中英文文本添加 - SupportCard描述中英文文本 --- app/components/pages/support/SupportCard.vue | 2 +- app/components/pages/support/SupportTabs.vue | 8 ++++---- app/pages/support/index.vue | 8 ++++---- i18n/locales/en.json | 8 +++++++- i18n/locales/zh.json | 8 +++++++- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/app/components/pages/support/SupportCard.vue b/app/components/pages/support/SupportCard.vue index 94d5dab..247342b 100644 --- a/app/components/pages/support/SupportCard.vue +++ b/app/components/pages/support/SupportCard.vue @@ -20,7 +20,7 @@ - 了解更多 > + {{ $t('learn-more') }} > diff --git a/app/components/pages/support/SupportTabs.vue b/app/components/pages/support/SupportTabs.vue index 347198d..177273a 100644 --- a/app/components/pages/support/SupportTabs.vue +++ b/app/components/pages/support/SupportTabs.vue @@ -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) => { diff --git a/app/pages/support/index.vue b/app/pages/support/index.vue index 93c4f23..e2bc249 100644 --- a/app/pages/support/index.vue +++ b/app/pages/support/index.vue @@ -8,7 +8,7 @@

- 金申机械制造有限公司致力于为客户提供优质的产品与服务。针对纸管机、分纸机、纸吸管等产品,我们提供全方位的售后服务,确保客户能够安心地使用我们的产品。 + {{ $t('support-page-desc') }}

@@ -35,19 +35,19 @@ const supportItems = [ { title: $t('navigation.faq'), - description: '我们为用户整理了常见问题的答案,帮助您快速解决疑惑。', + description: $t('support-card-desc.faq'), to: localePath('/support/faq'), iconComponent: ElIconQuestionFilled, }, { title: $t('navigation.documents'), - description: '我们为用户整理了常见问题的答案,帮助您快速解决疑惑。', + description: $t('support-card-desc.documents'), to: localePath('/support/documents'), iconComponent: ElIconDocumentChecked, }, { title: $t('navigation.contact-info'), - description: '通过电话、邮箱联系我们,我们将现场为您服务。', + description: $t('support-card-desc.contact-info'), to: localePath('/support/contact-us'), iconComponent: ElIconService, }, diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 097b27e..6a82c91 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -63,5 +63,11 @@ "loading": "Loading...", "our-products": "Our Products", "learn-our-solutions": "Learn Our Solutions", - "all": "All" + "all": "All", + "support-page-desc": "Zhejiang Jinshen Machinery Manufacturing Co., Ltd is committed to providing high-quality products and services to our customers. For products such as paper tube machines, slitting machines, and paper straw equipment, we offer comprehensive after-sales support to ensure our customers can use our products with confidence.", + "support-card-desc": { + "faq": "We have compiled answers to frequently asked questions to help you quickly resolve any concerns.", + "documents": "We provide product manuals, technical specifications, and other documentation for easy reference.", + "contact-info": "Contact us by phone or email, and we will provide on-site support for you." + } } diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index 36613f4..20e25b7 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -63,5 +63,11 @@ "loading": "加载中...", "our-products": "我们的产品", "learn-our-solutions": "了解我们的解决方案", - "all": "全部" + "all": "全部", + "support-page-desc": "金申机械制造有限公司致力于为客户提供优质的产品与服务。针对纸管机、分纸机、纸吸管等产品,我们提供全方位的售后服务,确保客户能够安心地使用我们的产品。公司名可用占位符代替", + "support-card-desc": { + "faq": "我们为用户整理了常见问题的答案,帮助您快速解决疑惑。", + "documents": "提供产品手册、技术规格等文档资料,方便用户查阅。", + "contact-info": "通过电话、邮箱联系我们,我们将现场为您服务。" + } } From 5990e000bc600a4d9200e0fa551028664d08bd9d Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 4 Nov 2025 14:07:02 +0800 Subject: [PATCH 2/8] =?UTF-8?q?feat:=20=E4=BA=A7=E5=93=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E7=9A=84i18n=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/shared/ProductFilter.vue | 32 +++++++++++++++---------- i18n/locales/en.json | 9 +++++++ i18n/locales/zh.json | 8 +++++++ 3 files changed, 37 insertions(+), 12 deletions(-) diff --git a/app/components/shared/ProductFilter.vue b/app/components/shared/ProductFilter.vue index 664e1ff..dc09d52 100644 --- a/app/components/shared/ProductFilter.vue +++ b/app/components/shared/ProductFilter.vue @@ -2,10 +2,12 @@
- 产品分类 + {{ + $t('product-filter.product-type') + }} - 产品系列 + {{ + $t('product-filter.product-model') + }} - 关键词 + {{ $t('product-filter.keyword') }} @@ -45,10 +49,12 @@ - 产品分类 + {{ + $t('product-filter.product-type') + }} - 产品系列 + {{ + $t('product-filter.product-model') + }} - 关键词 + {{ $t('product-filter.keyword') }} diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 6a82c91..7f5a042 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -69,5 +69,14 @@ "faq": "We have compiled answers to frequently asked questions to help you quickly resolve any concerns.", "documents": "We provide product manuals, technical specifications, and other documentation for easy reference.", "contact-info": "Contact us by phone or email, and we will provide on-site support for you." + }, + + "product-filter": { + "product-type": "Product type", + "product-model": "Product model", + "keyword": "Keyword", + "select-product-type": "Select product type", + "select-product-model": "Select product model", + "enter-keyword": "Enter keyword" } } diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index 20e25b7..b454b52 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -69,5 +69,13 @@ "faq": "我们为用户整理了常见问题的答案,帮助您快速解决疑惑。", "documents": "提供产品手册、技术规格等文档资料,方便用户查阅。", "contact-info": "通过电话、邮箱联系我们,我们将现场为您服务。" + }, + "product-filter": { + "product-type": "产品类型", + "product-model": "产品系列", + "keyword": "关键词", + "select-product-type": "选择产品类型", + "select-product-model": "选择产品系列", + "enter-keyword": "输入关键词" } } From 085fd8bad3da2bf1ccccc9c97a16be0f23105b91 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 4 Nov 2025 14:09:06 +0800 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E6=96=87=E6=A1=A3=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=9A=84i18n=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/shared/DocumentList.vue | 4 ++-- i18n/locales/en.json | 4 ++++ i18n/locales/zh.json | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/components/shared/DocumentList.vue b/app/components/shared/DocumentList.vue index 9a14e66..de8669d 100644 --- a/app/components/shared/DocumentList.vue +++ b/app/components/shared/DocumentList.vue @@ -10,10 +10,10 @@

{{ doc.title }}

大小: {{ formatFileSize(doc.size) }} + >{{ $t('document-meta.size') }}: {{ formatFileSize(doc.size) }} 格式: + >{{ $t('document-meta.format') }}: {{ formatFileExtension(getFileExtension(doc.filename)) }}
diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 7f5a042..0f1d15d 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -78,5 +78,9 @@ "select-product-type": "Select product type", "select-product-model": "Select product model", "enter-keyword": "Enter keyword" + }, + "document-meta": { + "size": "Size", + "format": "Format" } } diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index b454b52..e4df7b0 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -77,5 +77,9 @@ "select-product-type": "选择产品类型", "select-product-model": "选择产品系列", "enter-keyword": "输入关键词" + }, + "document-meta": { + "size": "大小", + "format": "格式" } } From b7bb0cfff8f51fc9068389d28f22d913d441328e Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Tue, 4 Nov 2025 14:13:46 +0800 Subject: [PATCH 4/8] =?UTF-8?q?feat:=20=E6=96=87=E6=A1=A3=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=A1=B5=E7=9A=84i18n=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/pages/download/FileCard.vue | 18 +++++++++++------- app/pages/download/[id].vue | 2 +- i18n/locales/en.json | 8 +++++++- i18n/locales/zh.json | 8 +++++++- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/app/components/pages/download/FileCard.vue b/app/components/pages/download/FileCard.vue index 6ed83e5..3c098ea 100644 --- a/app/components/pages/download/FileCard.vue +++ b/app/components/pages/download/FileCard.vue @@ -8,15 +8,17 @@
-
类型:
+
{{ $t('document-meta.type') }}:
{{ file.type }}
-
大小:
+
{{ $t('document-meta.size') }}:
{{ formatFileSize(file.filesize) }}
-
上传时间:
+
+ {{ $t('document-meta.upload-at') }}: +
{{ new Date(file.uploaded_on).toLocaleDateString() }}
@@ -24,10 +26,12 @@
diff --git a/app/pages/download/[id].vue b/app/pages/download/[id].vue index dfff6a3..f0f54df 100644 --- a/app/pages/download/[id].vue +++ b/app/pages/download/[id].vue @@ -1,7 +1,7 @@