UNPKG

vite-intlayer

Version:

A Vite plugin for seamless internationalization (i18n), providing locale detection, redirection, and environment-based configuration

45 lines (43 loc) 1.3 kB
import { GetConfigurationOptions } from "@intlayer/config"; import { PluginOption } from "vite"; //#region src/intlayerPlugin.d.ts /** * @deprecated Rename to intlayer instead * * A Vite plugin that integrates Intlayer configuration into the build process * * ```ts * // Example usage of the plugin in a Vite configuration * export default defineConfig({ * plugins: [ intlayer() ], * }); * ``` * */ declare const intlayerPlugin: (configOptions?: GetConfigurationOptions) => PluginOption; /** * A Vite plugin that integrates Intlayer configuration into the build process * * ```ts * // Example usage of the plugin in a Vite configuration * export default defineConfig({ * plugins: [ intlayer() ], * }); * ``` */ declare const intlayer: (configOptions?: GetConfigurationOptions) => PluginOption; /** * @deprecated Rename to intlayer instead * * A Vite plugin that integrates Intlayer configuration into the build process * * ```ts * // Example usage of the plugin in a Vite configuration * export default defineConfig({ * plugins: [ intlayer() ], * }); * ``` */ declare const intLayerPlugin: (configOptions?: GetConfigurationOptions) => PluginOption; //#endregion export { intLayerPlugin, intlayer, intlayerPlugin }; //# sourceMappingURL=intlayerPlugin.d.ts.map