著者:
    作成:2026-01-21最終更新:2026-01-21

    vite-intlayer パッケージ

    vite-intlayer パッケージは、Viteベースのアプリケーションに Intlayer を統合するための Vite プラグインを提供します。

    インストール

    bash
    npm install vite-intlayer

    エクスポート

    プラグイン

    インポート:

    tsx
    import "vite-intlayer";
    関数 説明 関連ドキュメント
    intlayer Intlayer をビルドプロセスに統合する主要な Vite プラグイン。 intlayer
    intlayerPlugin (非推奨) intlayer のエイリアス。 intlayer
    intlayerProxy ロケール検出とルーティングを処理する開発用ミドルウェアプラグイン。 -
    intlayerMiddleware (非推奨) intlayerProxy のエイリアス。 -
    intlayerPrune ビルド時に未使用の辞書をツリーシェイクしてプルーンするプラグイン。 intlayerPrune

    ユーティリティ

    エクスポート 説明 関連ドキュメント
    createIntlayerProxyHandler フレームワークに依存しないNode.js (req, res, next) ミドルウェアをロケールルーティングロジック付きで返します。 intlayerProxy

    Types

    Export Description
    IntlayerPluginOptions intlayer() で受け入れられるオプション。GetConfigurationOptionscompatCallersproxy で拡張します。
    IntlayerProxyPluginOptions intlayerProxy()createIntlayerProxyHandler() で受け入れられるオプション。ignoreconfigOptions を含みます。
    IntlayerCompilerOptions intlayerCompiler() で受け入れられるオプション。configOptionscompilerConfig を含みます。
    CompatCallerConfig @intlayer/babel から再エクスポート。フィールド使用分析のための compat-adapter caller パターンを説明します。