Autor:
    Criação:2026-01-21Última atualização:2026-01-21

    pacote vite-intlayer

    O pacote vite-intlayer fornece um plugin Vite para integrar o Intlayer à sua aplicação baseada em Vite.

    Instalação

    bash
    npm install vite-intlayer
    

    Exportações

    Plugin

    Importação:

    tsx
    import "vite-intlayer";
    
    FunçãoDescriçãoDocumento Relacionado
    intlayerPlugin principal do Vite que integra o Intlayer ao processo de build.intlayer
    intlayerPlugin(Obsoleto) Alias para intlayer.intlayer
    intlayerProxyPlugin middleware de desenvolvimento para tratar a detecção de locale e roteamento.-
    intlayerMiddleware(Obsoleto) Alias para intlayerProxy.-
    intlayerPrunePlugin para tree-shake e remover dicionários não utilizados durante o build.intlayerPrune

    Utilitários

    ExportaçãoDescriçãoDocumentação Relacionada
    createIntlayerProxyHandlerRetorna um middleware Node.js agnóstico de framework (req, res, next) com lógica de roteamento de locale.intlayerProxy

    Tipos

    ExportaçãoDescrição
    IntlayerPluginOptionsOpções aceitas por intlayer(). Estende GetConfigurationOptions com compatCallers e proxy.
    IntlayerProxyPluginOptionsOpções aceitas por intlayerProxy() e createIntlayerProxyHandler(). Inclui ignore e configOptions.
    IntlayerCompilerOptionsOpções aceitas por intlayerCompiler(). Inclui configOptions e compilerConfig.
    CompatCallerConfigRe-exportação de @intlayer/babel. Descreve um padrão de chamador compat-adapter para análise de uso de campo.