UNPKG

@astrolicious/i18n

Version:

Yet another i18n integration for Astro with server and client utilities, type safety and translations built-in.

36 lines (33 loc) 1.03 kB
import * as astro_integration_kit from 'astro-integration-kit'; import * as sitemap from 'sitemap'; declare const handleI18next: astro_integration_kit.HookUtility<"astro:config:setup", [options: { defaultLocale: string; locales: string[]; strategy: "prefix" | "prefixExceptDefault"; pages: { [k: string]: Record<string, string | undefined>; }; localesDir: string; defaultNamespace: string; client: { translations: boolean; data: boolean; paths: boolean; }; rootRedirect?: { status: 300 | 301 | 302 | 303 | 304 | 307 | 308; destination: string; } | undefined; sitemap?: { entryLimit: number; customPages?: string[] | undefined; changefreq?: sitemap.EnumChangefreq | undefined; lastmod?: Date | undefined; priority?: number | undefined; } | undefined; }], { namespaces: string[]; resources: Record<string, Record<string, unknown>>; dtsContent: string; }>; export { handleI18next };