feat(i18n): 更新中英文翻译及国际化支持

- 在Workshop和Line模块中添加新的翻译字段
- 修复页面中硬编码的文本,改为使用翻译
- 更新产品线和车间展示的英文翻译内容
- 为卡片组件添加locale属性传递
This commit is contained in:
砂糖
2026-02-03 17:18:13 +08:00
parent 86c20e5ef7
commit e7a428d8f0
7 changed files with 65 additions and 44 deletions

View File

@@ -14,7 +14,7 @@ export default function HomeComponent() {
{/* 轮播图区域, 先用一张图片占位, 宽度100% 盖度100vh */}
<img src="/images/home.png" alt={t("carousel")} className="w-screen h-[80vh] object-cover rounded-lg" />
{/* 公司介绍 - 左右布局 */}
<div className="flex flex-col lg:flex-row w-full my-16 px-8">
<div className="flex flex-col lg:flex-row w-full my-16 px-8 items-center">
{/* 左边视频(图片占位) */}
<div className="w-full lg:w-1/2 h-[50vh] lg:h-[60vh] relative overflow-hidden">
<img