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";
    
    FunctionDescriptionRelated documentation
    intlayerMain Vite plugin that integrates Intlayer into the build process.intlayer
    intlayerPlugin(Deprecated) Alias for intlayer.intlayer
    intlayerProxyDevelopment middleware plugin to handle locale detection and routing.-
    intlayerMiddleware(Deprecated) Alias for intlayerProxy.-
    intlayerPrunePlugin to tree-shake and prune unused dictionaries during the build.intlayerPrune

    Utilities

    ExportDescriptionRelated Doc
    createIntlayerProxyHandlerReturns a framework-agnostic Node.js (req, res, next) middleware with locale-routing logic.intlayerProxy

    Types

    ExportDescription
    IntlayerPluginOptionsOptions accepted by intlayer(). Extends GetConfigurationOptions with compatCallers and proxy.
    IntlayerProxyPluginOptionsOptions accepted by intlayerProxy() and createIntlayerProxyHandler(). Includes ignore and configOptions.
    IntlayerCompilerOptionsOptions accepted by intlayerCompiler(). Includes configOptions and compilerConfig.
    CompatCallerConfigRe-export from @intlayer/babel. Describes a compat-adapter caller pattern for field-usage analysis.