Skip to content
DIH Knowledge Base
    Sign in

    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/.

    1. Use the language selector in the header (translate icon).
    2. Compare this page with Deutsch.
    3. Sidebar labels and header actions switch to German on /de/ routes.
    4. Untranslated pages fall back to English content (Starlight fallbackType: redirect).
    PieceLocation
    Localesastro.config.mjslocales.en + locales.de, defaultLocale: 'en'
    Redirectredirects: { '/': '/en/' } in astro.config.mjs
    English docssrc/content/docs/en/
    German docssrc/content/docs/de/
    Header copysrc/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.