Commit 3dfcfb1
docs(i18n): English-only by decision — remove the cn shell
The cn language was declared in docs.site.json and mapped in middleware, but
lib/i18n.ts (what fumadocs actually consumes) only ever listed en and there is
zero cn content — a config-vs-runtime drift that made the site look bilingual.
Remove the declaration and the dead zh->cn Accept-Language mapping; keep the
i18n plumbing so a future language is content + one config line.
Verified: docs build passes; with Accept-Language: zh-CN, /docs serves the
English page with no /cn redirect.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 873c099 commit 3dfcfb1
3 files changed
Lines changed: 17 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 22 | | |
52 | 23 | | |
53 | 24 | | |
| |||
62 | 33 | | |
63 | 34 | | |
64 | 35 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 36 | + | |
69 | 37 | | |
70 | | - | |
| 38 | + | |
71 | 39 | | |
72 | 40 | | |
73 | 41 | | |
| |||
82 | 50 | | |
83 | 51 | | |
84 | 52 | | |
85 | | - | |
86 | | - | |
| 53 | + | |
87 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
88 | 58 | | |
89 | 59 | | |
90 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments