Przeglądaj źródła

feat(i18n): 新增首页轮播图多语言文案并更新相关链接

在 `zh.ts`、`ja.ts` 和 `en.ts` 中新增了 `two` 和 `three` 部分的轮播图文案,并移除了 `products-ja.json` 中冗余的图片路径。同时,更新了 `index.vue` 中的轮播图文案引用和跳转链接,以匹配新的文案结构。
master
watermax 1 miesiąc temu
rodzic
commit
3ea9934e5b
5 zmienionych plików z 67 dodań i 66 usunięć
  1. 16
    0
      i18n/locales/en.ts
  2. 16
    0
      i18n/locales/ja.ts
  3. 16
    0
      i18n/locales/zh.ts
  4. 16
    24
      pages/index.vue
  5. 3
    42
      public/data/products-ja.json

+ 16
- 0
i18n/locales/en.ts Wyświetl plik

@@ -89,6 +89,22 @@ export default {
description4: "Enjoy stress-free gaming experience",
description5: "The computer startup time is dramatically faster!",
},
two: {
title: "In-house R&D,",
description: "The Quality Choice",
description2: "Diverse Storage Solutions,",
description3: "For Your Various Needs",
description4: "Core Tech Driven, Stable & Superb Performance",
description5: "SSDs, Memory, Cards & More: Meeting Every Need",
},
three: {
title: "Innovation Never Stops",
description: ",",
description2: "Expert Team Refining Tech,",
description3: "Forging Superior Storage",
description4: "In-house R&D Builds Pro Quality",
description5: "Always Exploring, Leading Storage Tech",
},
},
useCategoryTitle: "Hanye Self-Developed and Manufactured",
useCategoryDescription: "Product Categories",

+ 16
- 0
i18n/locales/ja.ts Wyświetl plik

@@ -81,6 +81,22 @@ export default {
description4: "ストレスのないゲーム体験をお楽しみください",
description5: "パソコンの起動時間が劇的に速くなった!",
},
two: {
title: "自社開発、",
description: "高品質の選択",
description2: "多様なストレージ、",
description3: "多様なニーズに対応",
description4: "コア技術で安定・高性能",
description5: "SSD・メモリ・カード他、全製品ラインナップ",
},
three: {
title: "革新は止まらない",
description: "、",
description2: "専門チームが技術を精錬、",
description3: "最高のストレージ体験を",
description4: "自社開発でプロ品質を",
description5: "常に探求、ストレージ技術をリード",
},
},
useCategoryTitle: "Hanye独自に開発・製造、販売",
useCategoryDescription: "製品カテゴリー",

+ 16
- 0
i18n/locales/zh.ts Wyświetl plik

@@ -82,6 +82,22 @@ export default {
description4: "享受无压力的游戏体验",
description5: "电脑启动时间大幅提升!",
},
two: {
title: "自研实力,",
description: "品质之选",
description2: "多样存储方案,",
description3: "满足您的多种需求",
description4: "核心技术驱动,性能稳定卓越",
description5: "SSD、内存、存储卡等 全线产品满足所需",
},
three: {
title: "创新不止",
description: ",",
description2: "经验团队精研技术,",
description3: "打造卓越存储体验",
description4: "自主研发实力,铸就专业品质",
description5: "不断探索,引领存储技术新方向",
},
},
useCategoryTitle: "Hanye 自主开发和制造",
useCategoryDescription: "产品分类",

+ 16
- 24
pages/index.vue Wyświetl plik

@@ -110,26 +110,22 @@
<div
class="w-full h-full flex-col justify-center hidden md:flex relative z-10"
>
<div
class="rounded border border-white w-11 h-6 leading-none justify-center flex items-center text-white text-sm font-normal"
>
SSD
</div>
<div class="justify-center">
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.title")
t("home.carousel.two.title")
}}</span>
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.description")
t("home.carousel.two.description")
}}</span>
<br />
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.description2")
t("home.carousel.two.description2")
}}</span
><br />
<span
class="text-cyan-400 text-6xl font-normal leading-[78px]"
>{{ t("home.carousel.one.description3") }}</span
>{{ t("home.carousel.two.description3") }}</span
>
</div>
<div class="flex flex-col gap-2 mt-4">
@@ -137,20 +133,20 @@
class="flex items-center gap-2 text-stone-50 text-xl font-normal"
>
<div class="w-2 h-2 bg-white rounded-full"></div>
{{ t("home.carousel.one.description4") }}
{{ t("home.carousel.two.description4") }}
</div>
<div
class="flex items-center gap-2 text-stone-50 text-xl font-normal"
>
<div class="w-2 h-2 bg-white rounded-full"></div>
{{ t("home.carousel.one.description5") }}
{{ t("home.carousel.two.description5") }}
</div>
</div>
<div
class="w-36 h-14 mt-12 flex items-center justify-center bg-[#35F1FF] rounded-lg hover:bg-[#35F1FF]/80 transition-colors duration-300"
>
<nuxt-link
:to="`${homepagePath}/products/HE80-2TNLHS`"
:to="`${homepagePath}/products`"
class="w-full h-full !flex items-center justify-center text-zinc-900"
>
{{ t("products.view_details") }}
@@ -171,26 +167,22 @@
<div
class="w-full h-full flex-col justify-center hidden md:flex absolute top-0 left-0 z-10"
>
<div
class="rounded border border-white w-11 h-6 leading-none justify-center flex items-center text-white text-sm font-normal"
>
SSD
</div>
<div class="justify-center">
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.title")
t("home.carousel.three.title")
}}</span>
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.description")
t("home.carousel.three.description")
}}</span>
<br />
<span class="text-white text-6xl font-normal leading-[78px]">{{
t("home.carousel.one.description2")
t("home.carousel.three.description2")
}}</span
><br />
<span
class="text-cyan-400 text-6xl font-normal leading-[78px]"
>{{ t("home.carousel.one.description3") }}</span
>{{ t("home.carousel.three.description3") }}</span
>
</div>
<div class="flex flex-col gap-2 mt-4">
@@ -198,20 +190,20 @@
class="flex items-center gap-2 text-stone-50 text-xl font-normal"
>
<div class="w-2 h-2 bg-white rounded-full"></div>
{{ t("home.carousel.one.description4") }}
{{ t("home.carousel.three.description4") }}
</div>
<div
class="flex items-center gap-2 text-stone-50 text-xl font-normal"
>
<div class="w-2 h-2 bg-white rounded-full"></div>
{{ t("home.carousel.one.description5") }}
{{ t("home.carousel.three.description5") }}
</div>
</div>
<div
class="w-36 h-14 mt-12 flex items-center justify-center bg-[#35F1FF] rounded-lg hover:bg-[#35F1FF]/80 transition-colors duration-300"
>
<nuxt-link
:to="`${homepagePath}/products/HE80-2TNLHS`"
:to="`${homepagePath}/about`"
class="w-full h-full !flex items-center justify-center text-zinc-900"
>
{{ t("products.view_details") }}

+ 3
- 42
public/data/products-ja.json Wyświetl plik

@@ -1322,20 +1322,7 @@
"series": [
"W400 Series"
],
"gallery": [
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-1.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-2.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-3.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-4.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-5.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-6.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-7.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-8.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-9.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-10.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-11.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-128GSY01/w400-128gsy01-12.webp"
],
"gallery": [],
"capacities": [
"128GB"
]
@@ -1377,20 +1364,7 @@
"series": [
"W400 Series"
],
"gallery": [
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-1.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-2.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-3.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-4.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-5.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-6.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-7.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-8.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-9.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-10.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-11.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-256GSY01/w400-256gsy01-12.webp"
],
"gallery": [],
"capacities": [
"256GB"
]
@@ -1411,20 +1385,7 @@
"series": [
"W400 Series"
],
"gallery": [
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-1.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-2.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-3.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-4.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-5.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-6.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-7.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-8.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-9.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-10.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-11.webp",
"/images/products/2.5-inch SSD & M.2 SSD/W400-512GSY01/w400-512gsy01-12.webp"
],
"gallery": [],
"capacities": [
"512GB"
]

Ładowanie…
Anuluj
Zapisz