Skip to content

Commit a10c077

Browse files
ZenoWang1999claude
andauthored
fix(i18n): make zh pages render Chinese content + add zh install page (#750)
* fix(i18n): make zh pages render Chinese content + add zh install page - Remove `force-static` from [product]/[filename] route so getLocale() reads the x-language header at request time (force-static froze locale to build-time "en", causing /zh/pricing etc. to render English). - Add content/pages/YakShaver/zh/install.json (Chinese install page; previously fell back to English due to missing file). - Align zh navigation bar structure with the English version (add Install item, openInNewTab flags, CONTACT US + Portal buttons) keeping Chinese labels. - Include pre-existing zh/home.json content tweaks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix the wording --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e7be2eb commit a10c077

5 files changed

Lines changed: 95 additions & 40 deletions

File tree

app/[product]/[filename]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import NotFoundError from "@/errors/not-found";
77
import ClientFallbackPage from "../../client-fallback-page";
88
import { notFound } from "next/navigation";
99

10-
export const dynamic = 'force-static';
1110
interface FilePageProps {
1211
params: Promise<{ product: string; filename: string }>;
1312
}

content/navBars/YakShaver/zh/YakShaver-NavigationBar.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"href": "/about",
1616
"_template": "stringItem"
1717
},
18+
{
19+
"label": "安装",
20+
"href": "/install",
21+
"title": "安装",
22+
"_template": "stringItem"
23+
},
1824
{
1925
"label": "博客",
2026
"href": "/blog",
@@ -46,33 +52,34 @@
4652
},
4753
{
4854
"label": "Discord",
49-
"href": "https://discord.gg/Jp9dyxKFjR"
55+
"href": "https://discord.gg/Jp9dyxKFjR",
56+
"openInNewTab": true
5057
}
5158
],
5259
"_template": "groupOfStringItems"
5360
},
5461
{
5562
"label": "视频",
5663
"href": "https://www.youtube.com/@SSWYakShaver",
64+
"openInNewTab": true,
5765
"_template": "stringItem"
5866
}
5967
],
6068
"buttons": [
6169
{
62-
"label": "登录",
63-
"variant": "outlinedWhite",
64-
"_template": "actions",
65-
"url": "https://portal.yakshaver.ai/",
66-
"size": "medium"
70+
"Title": "联系我们",
71+
"JotFormId": "233468468973070",
72+
"variants": "outline",
73+
"_template": "BookingButton"
6774
},
6875
{
69-
"label": "注册",
76+
"label": "门户",
7077
"icon": "/YakShaver/yakshaver-black.svg",
7178
"iconPosition": "left",
7279
"variant": "solidWhite",
7380
"_template": "actions",
74-
"url": "https://portal.yakshaver.ai/",
75-
"size": "medium"
81+
"size": "medium",
82+
"url": "https://portal.yakshaver.ai/"
7683
}
7784
]
7885
}

content/pages/YakShaver/zh/home.json

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
"backgroundImageEnabled": false,
1111
"titleBeforeRotate": "快速制作完美的",
1212
"titleAfterRotate": "仅需几秒",
13-
"rotatingWords": [
14-
"PBI",
15-
"任务",
16-
"工单",
17-
"邮件"
18-
],
13+
"rotatingWords": ["PBI", "任务", "工单", "邮件"],
1914
"byLine": "别再浪费时间写错误报告了。\n\nYakShaver AI 代理分析录音,生成任务,并立即分配给正确的团队。\n\n使用 YakShaver 节省数小时的挫败感。\n",
2015
"ctaRight": {
2116
"title": "观看视频",
@@ -74,7 +69,7 @@
7469
"textOnLeft": true
7570
},
7671
{
77-
"AboveHeaderText": "{剃除}",
72+
"AboveHeaderText": "{Shave}",
7873
"Header": "2 - YakShaver 接管",
7974
"Description": "YakShaver 观看您的视频,将您说的话转成文本,并理解发生了什么。\n",
8075
"media": "/Browser2.png",
@@ -149,7 +144,7 @@
149144
"description": "当 PBI 被创建、分配或需要跟进时,立即保持更新"
150145
},
151146
"counterBox1": {
152-
"title": "剃除的 Yaks 数量",
147+
"title": "Shave的 Yaks 数量",
153148
"counterMetric": "YakShaved"
154149
},
155150
"counterBox2": {
@@ -187,14 +182,11 @@
187182
},
188183
{
189184
"title": "简单透明的定价",
190-
"desc": "共享剃除额度。一次付费,组织内任何人都可以报告问题。零按席位收费——尽情剃除",
185+
"desc": "共享 Shave 额度。一次付费,组织内任何人都可以报告问题。不按人头收费——尽情 Shave",
191186
"tiers": [
192187
{
193188
"tier": "入门",
194-
"description": [
195-
"每月 15 次剃除",
196-
"适合个人"
197-
],
189+
"description": ["每月 15 次 Shave", "适合个人"],
198190
"price": 0,
199191
"estimatedHoursSaved": 7.5,
200192
"itemsAbleToCreate": 15,
@@ -208,10 +200,7 @@
208200
},
209201
{
210202
"tier": "团队",
211-
"description": [
212-
"每月 100 次剃除",
213-
"适合成长中的团队"
214-
],
203+
"description": ["每月 100 次 Shave", "适合成长中的团队"],
215204
"price": 39,
216205
"estimatedHoursSaved": 50,
217206
"itemsAbleToCreate": 100,
@@ -225,10 +214,7 @@
225214
},
226215
{
227216
"tier": "成长",
228-
"description": [
229-
"每月 500 次剃除",
230-
"适合大型组织"
231-
],
217+
"description": ["每月 500 次 Shave", "适合大型组织"],
232218
"price": 189,
233219
"estimatedHoursSaved": 250,
234220
"itemsAbleToCreate": 500,
@@ -242,10 +228,7 @@
242228
},
243229
{
244230
"tier": "企业",
245-
"description": [
246-
"定制剃除额度",
247-
"适合定制解决方案"
248-
],
231+
"description": ["定制 Shave 额度", "适合定制解决方案"],
249232
"price": 99999,
250233
"estimatedHoursSaved": 0,
251234
"itemsAbleToCreate": 0,
@@ -328,4 +311,4 @@
328311
"pageFormatting": {
329312
"bottomPadding": "small"
330313
}
331-
}
314+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"seo": {
3+
"title": "安装",
4+
"description": "立即下载、安装并开始剃须。"
5+
},
6+
"title": "安装",
7+
"pageBlocks": [
8+
{
9+
"title": "选择您的平台",
10+
"cards": [
11+
{
12+
"title": "桌面应用",
13+
"descriptionLhs": "✓ 免费\n\n✓ 连接您喜爱的 MCP\n\n✓ 自带 AI 提供商\n",
14+
"descriptionRhs": "✓ 安全的令牌存储\n\n✓ 原生独立应用\n\n✓ 自定义提示词\n",
15+
"colSpan": "2",
16+
"buttons": [
17+
{
18+
"label": "下载 Windows 版",
19+
"url": "https://github.com/SSWConsulting/SSW.YakShaver.Desktop/releases/latest/download/YakShaver-latest-Setup.exe",
20+
"icon": "/svg/windows.svg",
21+
"iconPosition": "left",
22+
"variant": "solidRed",
23+
"size": "medium",
24+
"_template": "actions"
25+
},
26+
{
27+
"label": "下载 Mac 版",
28+
"url": "https://github.com/SSWConsulting/SSW.YakShaver.Desktop/releases/latest/download/YakShaver-latest-arm64.dmg",
29+
"icon": "/YakShaver/Docs/apple.svg",
30+
"iconPosition": "left",
31+
"variant": "solidRed",
32+
"size": "medium",
33+
"_template": "actions"
34+
}
35+
]
36+
},
37+
{
38+
"title": "Teams 应用扩展",
39+
"descriptionLhs": "✓ 免费\n\n✓ Teams 录制\n\n✓ 在会议中协作\n\n✓ 自动处理录制\n\n✓ 内置命令\n",
40+
"descriptionRhs": "",
41+
"colSpan": "1",
42+
"buttons": [
43+
{
44+
"label": "安装到 Teams",
45+
"url": "https://teams.microsoft.com/l/app/f47ac10b-58cc-4372-a567-0e02b2c3d479",
46+
"icon": "/svg/Microsoft Office Teams 2018.svg",
47+
"iconPosition": "left",
48+
"variant": "outlinedWhite",
49+
"size": "medium",
50+
"_template": "actions"
51+
}
52+
]
53+
}
54+
],
55+
"_template": "downloadCards"
56+
},
57+
{
58+
"altText": "制作完美的 PBI | YakShaver",
59+
"title": "想了解更多?观看此视频!",
60+
"externalVideoLink": "https://www.youtube.com/embed/CBes1SEvV54?si=Y5_GrdtZpjZfu8qN",
61+
"thumbnail": "https://img.youtube.com/vi/CBes1SEvV54/maxresdefault.jpg",
62+
"figureCaption": "视频:使用 YakShaver 制作完美的 PBI(6 分钟)",
63+
"_template": "videoDisplay"
64+
}
65+
]
66+
}

content/pages/YakShaver/zh/mcp.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"seo": {
33
"title": "试用 YakShaver MCP 测试版!",
4-
"description": "试用 YakShaver MCP 测试版!下载、安装,今天就开始剃除牦牛毛"
4+
"description": "试用 YakShaver MCP 测试版!下载、安装,今天就开始 Shave"
55
},
66
"title": "试用 YakShaver MCP 测试版!",
77
"pageBlocks": [
@@ -27,8 +27,8 @@
2727
}
2828
},
2929
{
30-
"title": "3. 剃除",
31-
"description": "安装完成后,您就可以开始剃除牦牛毛了!有关详细说明,请观看下面的视频。\n",
30+
"title": "3. Shave",
31+
"description": "安装完成后,您就可以开始 Shave 了!有关详细说明,请观看下面的视频。\n",
3232
"image": {
3333
"imgSrc": "https://img.youtube.com/vi/CBes1SEvV54/maxresdefault.jpg",
3434
"imgLink": "https://www.youtube.com/embed/CBes1SEvV54?si=Y5_GrdtZpjZfu8qN",
@@ -46,4 +46,4 @@
4646
"_template": "tryItNow"
4747
}
4848
]
49-
}
49+
}

0 commit comments

Comments
 (0)