Author:
    Creation:2026-01-21Last update:2026-01-21

    vite-intlayer package

    The vite-intlayer package provides a Vite plugin to integrate Intlayer into your Vite-based application.

    Installation

    bash
    npm install vite-intlayer

    Exports

    Plugin

    Import:

    tsx
    import "vite-intlayer";
    Function Description Related documentation
    intlayer Main Vite plugin that integrates Intlayer into the build process. intlayer
    intlayerPlugin (Deprecated) Alias for intlayer. intlayer
    intlayerProxy Development middleware plugin to handle locale detection and routing. -
    intlayerMiddleware (Deprecated) Alias for intlayerProxy. -
    intlayerPrune Plugin to tree-shake and prune unused dictionaries during the build. intlayerPrune

    Utilities

    Export Description Related Doc
    createIntlayerProxyHandler Returns a framework-agnostic Node.js (req, res, next) middleware with locale-routing logic. intlayerProxy

    Types

    Export Description
    IntlayerPluginOptions Options accepted by intlayer(). Extends GetConfigurationOptions with compatCallers and proxy.
    IntlayerProxyPluginOptions Options accepted by intlayerProxy() and createIntlayerProxyHandler(). Includes ignore and configOptions.
    IntlayerCompilerOptions Options accepted by intlayerCompiler(). Includes configOptions and compilerConfig.
    CompatCallerConfig Re-export from @intlayer/babel. Describes a compat-adapter caller pattern for field-usage analysis.