Commit c2eb09b
feat(i18n): enable es, pt-BR, de in static export
Flips the multi-locale switch now that translated content and tooling
are in place:
- next.config.mjs: locales = ['en', 'es', 'pt-BR', 'de']
- app/[lang]/layout.tsx: generateStaticParams emits all 4 locales;
Layout receives an i18n prop so the LocaleSwitch (Nextra-built into
the Footer and mobile sidebar) renders with translated names.
- public/sitemap.xml: regenerated to 212 URLs (53 routes × 4 locales)
with hreflang alternates and x-default pointing at the en version.
After deploy, /es, /pt-BR, /de routes serve directly. Existing /en
URLs are unaffected. Vercel redirects from bare paths still target
/en/* as the default-locale fallback.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9d35b71 commit c2eb09b
3 files changed
Lines changed: 2136 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
| |||
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
0 commit comments