Zum Inhalt springen
CtrlK

I18nConfig

Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.
import type { I18nConfig } from "ardo/config"

type I18nConfig = {
    /** Default locale. When i18n is active, public URLs include this locale. */
    defaultLocale: string;
    /** Redirect old unlocalized URLs to the default locale during a localization migration. */
    redirectUnlocalized?: boolean;
    /** Locales that have their own complete static route tree. */
    locales: DocumentationLocale[];
};

Properties

NameTypeRequiredDescription
defaultLocalestringYesDefault locale. When i18n is active, public URLs include this locale.
redirectUnlocalizedbooleanNoRedirect old unlocalized URLs to the default locale during a localization migration.
localesDocumentationLocale[]YesLocales that have their own complete static route tree.