I18nConfig
Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.
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. |