@astrolicious/i18n
Version:
Yet another i18n integration for Astro with server and client utilities, type safety and translations built-in.
30 lines (27 loc) • 982 B
TypeScript
import * as astro from 'astro';
import * as sitemap from 'sitemap';
declare const integration: (options: {
defaultLocale: string;
locales: string[];
strategy?: "prefix" | "prefixExceptDefault" | undefined;
pages?: Record<string, Record<string, string | undefined>> | undefined;
localesDir?: string | undefined;
defaultNamespace?: string | undefined;
client?: false | {
translations?: boolean | undefined;
data?: boolean | undefined;
paths?: boolean | undefined;
} | undefined;
rootRedirect?: {
status: 300 | 301 | 302 | 303 | 304 | 307 | 308;
destination: string;
} | undefined;
sitemap?: boolean | {
customPages?: string[] | undefined;
entryLimit?: number | undefined;
changefreq?: sitemap.EnumChangefreq | undefined;
lastmod?: Date | undefined;
priority?: number | undefined;
} | undefined;
}) => astro.AstroIntegration & {};
export { integration };