Saltar al contenido
CtrlK

I18nConfig

En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.
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.