i18n
Locale routing rules for the Clonesite marketing skeleton.
Decision
Keep the inherited Paraglide setup from the source skeleton. English is the
base locale at /, and Chinese uses the /zh prefix.
Rules
- Public UI routes can be localized.
/api/**, static assets, and generated files are not localized.- Locale is request/display state, not product data.
- The language switcher should route to the same logical surface once the site has more pages.
Current URL Shape
| Surface | English | Chinese |
|---|---|---|
| Home | / | /zh |
| Internal docs | /docs | /zh/docs |
| Health check | /api/healthz | not localized |
Validation
The lightweight coverage lives in web/src/lib/i18n/i18n-routing.test.ts.