Internationalization
This PoC uses Starlight i18n with English at /en/ and German at /de/ — matching docs.dih.telekom.com URL patterns. Visiting / redirects to /en/.
Try it
Section titled “Try it”- Use the language selector in the header (translate icon).
- Compare this page with Deutsch.
- Sidebar labels and header actions switch to German on
/de/routes. - Untranslated pages fall back to English content (Starlight
fallbackType: redirect).
Configuration
Section titled “Configuration”| Piece | Location |
|---|---|
| Locales | astro.config.mjs → locales.en + locales.de, defaultLocale: 'en' |
| Redirect | redirects: { '/': '/en/' } in astro.config.mjs |
| English docs | src/content/docs/en/ |
| German docs | src/content/docs/de/ |
| Header copy | src/lib/ui-copy.ts |
| Sidebar labels (DE) | src/lib/sidebar-labels.ts |
Auth routes (/auth/login, /auth/callback, /auth/logout) stay at the site root and work for all locales.