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
| Name | Type | Required | Description |
|---|---|---|---|
defaultLocale | string | Yes | Default locale. When i18n is active, public URLs include this locale. |
redirectUnlocalized | boolean | No | Redirect old unlocalized URLs to the default locale during a localization migration. |
locales | DocumentationLocale[] | Yes | Locales that have their own complete static route tree. |