Quellcode durchsuchen

refactor(i18n): 优化国际化配置,调整描述格式并新增分类信息

本次提交主要进行了以下修改:
1. 在英语、日语和中文的国际化配置中,调整了描述的格式,使其更符合代码整洁原则。
2. 新增了“使用类别标题”和“使用类别描述”字段,以丰富产品分类信息。

这些改动旨在提升代码可读性和国际化内容的完整性。
master
lizhuang vor 1 Monat
Ursprung
Commit
4b7d30896c
4 geänderte Dateien mit 37 neuen und 26 gelöschten Zeilen
  1. 14
    6
      i18n/locales/en.ts
  2. 12
    5
      i18n/locales/ja.ts
  3. 2
    0
      i18n/locales/zh.ts
  4. 9
    15
      pages/index.vue

+ 14
- 6
i18n/locales/en.ts Datei anzeigen

@@ -23,28 +23,34 @@ export default {
},
privacy: {
title: "Privacy Policy",
description: "Learn how we collect, use, and protect your personal information",
description:
"Learn how we collect, use, and protect your personal information",
},
support: {
title: "Support",
description: "Learn how we collect, use, and protect your personal information",
description:
"Learn how we collect, use, and protect your personal information",
},
terms: {
title: "Terms of Use",
description: "Learn how we collect, use, and protect your personal information",
description:
"Learn how we collect, use, and protect your personal information",
},
meta: {
privacy: {
title: "Privacy Policy - Hanye",
description: "Learn how Hanye collects, uses, and protects your personal information"
description:
"Learn how Hanye collects, uses, and protects your personal information",
},
support: {
title: "Support - Hanye",
description: "Learn how Hanye collects, uses, and protects your personal information",
description:
"Learn how Hanye collects, uses, and protects your personal information",
},
terms: {
title: "Terms of Use - Hanye",
description: "Learn how Hanye collects, uses, and protects your personal information",
description:
"Learn how Hanye collects, uses, and protects your personal information",
},
},
footer: {
@@ -84,6 +90,8 @@ export default {
description5: "The computer startup time is dramatically faster!",
},
},
useCategoryTitle: "Hanye Self-Developed and Manufactured",
useCategoryDescription: "Product Categories",
},
products: {
title: "Products",

+ 12
- 5
i18n/locales/ja.ts Datei anzeigen

@@ -82,10 +82,13 @@ export default {
description5: "パソコンの起動時間が劇的に速くなった!",
},
},
useCategoryTitle: "Hanye独自に開発・製造、販売",
useCategoryDescription: "製品カテゴリー",
},
products: {
title: "当社の製品",
description: "当社の製品、製品の使用方法や購入に関する助けを得ることができます。",
description:
"当社の製品、製品の使用方法や購入に関する助けを得ることができます。",
keywords: "Hanye, 製品, 製品情報, 技術サポート",
product_list: "製品一覧",
product_list_description:
@@ -112,7 +115,8 @@ export default {
product_count: "製品",
loadError: "製品の読み込みに失敗しました。後でもう一度お試しください。",
retry: "再試行",
imageLoadError: "画像の読み込みに失敗しました。後でもう一度お試しください。",
imageLoadError:
"画像の読み込みに失敗しました。後でもう一度お試しください。",
image: "画像 {index}",
error: "エラー",
productSpecifications: "製品仕様",
@@ -125,7 +129,8 @@ export default {
},
faq: {
title: "よくある質問",
description: "よくある質問、製品の使用方法や購入に関する助けを得ることができます。",
description:
"よくある質問、製品の使用方法や購入に関する助けを得ることができます。",
keywords: "Hanye, よくある質問, 製品情報, 技術サポート",
searchPlaceholder: "質問を検索",
category: "カテゴリー",
@@ -157,11 +162,13 @@ export default {
name: "Hanye",
companyName: "Hanye",
englishName: "Hanye Technology Co., Ltd.",
description: "Hanye は中国瀋陽に運営本部をおき2003年に設立されました。\n創業から現在に至るまで、メモリ(記憶媒体) 及び 関連製品の開発・製造・販売を統べる総合企業に成長いたしました。\nまた万全なアフターサービス体制も構築し全力でサポートいたします。\nお客様に信頼いただけるパートナーを目指し 一層の努力を重ねてまいります。",
description:
"Hanye は中国瀋陽に運営本部をおき2003年に設立されました。\n創業から現在に至るまで、メモリ(記憶媒体) 及び 関連製品の開発・製造・販売を統べる総合企業に成長いたしました。\nまた万全なアフターサービス体制も構築し全力でサポートいたします。\nお客様に信頼いただけるパートナーを目指し 一層の努力を重ねてまいります。",
established: "2003年",
ceo: "ZHENG XIAO DONG",
employees: "30人",
location: "803, NO.6, AiTe, 90-6# SanHao Street, Heping District, ShenYang, China",
location:
"803, NO.6, AiTe, 90-6# SanHao Street, Heping District, ShenYang, China",
philosophy:
"私たちは、革新的な技術と優れた品質で、お客様のデジタルライフをより快適に、より安全にすることを目指しています。持続可能な開発と環境への配慮を重視し、社会に貢献する企業として成長し続けます。",
businessHours: "月曜日 - 金曜日 9:00-18:00",

+ 2
- 0
i18n/locales/zh.ts Datei anzeigen

@@ -83,6 +83,8 @@ export default {
description5: "电脑启动时间大幅提升!",
},
},
useCategoryTitle: "Hanye 自主开发和制造",
useCategoryDescription: "产品分类",
},
products: {
title: "产品",

+ 9
- 15
pages/index.vue Datei anzeigen

@@ -160,9 +160,7 @@
</div>
</SwiperSlide>
<SwiperSlide>
<div
class="max-w-screen-2xl mx-auto h-full relative"
>
<div class="max-w-screen-2xl mx-auto h-full relative">
<video
:src="homeA3Webp"
autoplay
@@ -399,12 +397,12 @@
<div
class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4"
>
Hanye独自に開発・製造、販売
{{ t("home.useCategoryTitle") }}
</div>
<div
class="justify-center text-white font-normal mb-8 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
>
製品カテゴリー
{{ t("home.useCategoryDescription") }}
</div>
</div>
<div class="max-w-screen-2xl mx-auto">
@@ -448,16 +446,13 @@
:alt="category.title"
class="w-full h-full object-contain transition-transform duration-500 group-hover:scale-110"
/>
<div
class="absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"
></div>
</div>
</nuxt-link>
</div>
</div>
</section>

<!-- 产品核心展示 -->
<!-- 核心展示 -->
<section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
<div
class="max-w-screen-2xl mx-auto grid grid-cols-1 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1 gap-4"
@@ -528,7 +523,7 @@
</div>
</section>

<!-- 当社の強み -->
<!-- 关于我们 -->
<section class="max-w-full mb-12 md:mb-32 xl:px-8 lg:px-6 md:px-4 px-4">
<div class="max-w-screen-2xl mx-auto relative">
<div
@@ -587,12 +582,12 @@
<div
class="opacity-90 justify-start text-white text-2xl font-normal md:text-4xl"
>
一貫体制による高品質と安定供給
{{ t("about.companyInfo.name") }}
</div>
<div
class="opacity-70 justify-start text-white text-base md:text-lg font-normal leading-relaxed"
class="opacity-70 justify-start text-white text-base md:text-lg font-normal leading-relaxed whitespace-pre-wrap"
>
「企画・開発から製造、品質管理、販売、オンラインショップ運営まで自社で完結。ISO認証取得の工場で生産された信頼性の高い製品を、安定してお届けします。」
{{ t("about.companyInfo.description") }}
</div>
</div>
</div>
@@ -617,7 +612,7 @@
{{ t("products.consultation") }}
</h1>
<nuxt-link
:to="locale === defaultLocale ? '/contact' : `/${locale}/contact`"
:to="`${homepagePath}/contact`"
class="w-32 h-10 md:w-40 md:h-11 bg-zinc-300/10 rounded-lg outline outline-1 flex items-center justify-center gap-2 outline-white/20 backdrop-blur-[10px] cursor-pointer hover:bg-zinc-300/20 transition-colors duration-200"
>
<span class="text-xs md:text-sm font-normal">{{
@@ -667,7 +662,6 @@ import homeA2Webp from "@/assets/images/home-a-2.webp";
import homeA3Webp from "@/assets/videos/banner03.mp4";
import homeC1Webp from "@/assets/images/home-c-1.webp";


// 数据类型定义
interface Product {
id: number;

Laden…
Abbrechen
Speichern