astro-loader-i18n
Version:
An Astro content loader for i18n files and folder structures.
15 lines (14 loc) • 495 B
TypeScript
import { I18nLoaderEntry } from '../schemas/i18n-loader-schema';
type Options = {
locales: string[];
routePattern: string;
basePath?: string;
};
/**
* Creates an internationalization (i18n) collection based on the provided options.
*
* @param options - Configuration options for the i18n collection.
* @returns An array of objects representing the i18n collection for each locale.
*/
export declare function createI18nCollection(options: Options): I18nLoaderEntry[];
export {};