מחבר:
הפנו את עוזר ה-AI המועדף עליכם למסמך הזהChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Updated exports index – proxy and compiler now bundled into intlayer(); added intlayerProxy, intlayerCompiler, intlayerMinify docs"v9.0.025.6.2026
- "Unified documentation for all exports"v8.0.021.1.2026
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתעריכת המסמך הזה
אם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודנוצר:2026-01-21עדכון אחרון:2026-06-25
העתקה
העתקת ה-Markdown של המסמך ללוח
vite-intlayer Package
The vite-intlayer package provides a Vite plugin to integrate Intlayer into your Vite-based application. It handles dictionary compilation, dev-server watching, module aliases, locale-routing middleware, and build-time optimisations (tree-shaking, minification).
Installation
bash
העתקת קוד
העתקת הקוד ללוח
Exports
Plugins
Import:
ts
העתקת קוד
העתקת הקוד ללוח
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Export | Description | Related Doc |
|---|---|---|
intlayer | Main Vite plugin. Prepares dictionaries, configures aliases, starts dev-server watchers, and (since v9) bundles the proxy and compiler. | intlayer |
intlayerPlugin | (Deprecated) Alias for intlayer. | intlayer |
intLayerPlugin | (Deprecated) Alias for intlayer. | intlayer |
intlayerProxy | Locale-routing middleware plugin (detection, redirect, rewrite). Since v9 it is bundled inside intlayer() – register separately only if needed. | intlayerProxy |
intlayerMiddleware | (Deprecated) Alias for intlayerProxy. | intlayerProxy |
intLayerMiddlewarePlugin | (Deprecated) Alias for intlayerProxy. | intlayerProxy |
intlayerCompiler | Extracts inline content declarations from components and writes them to dictionaries. Since v9 it is bundled inside intlayer(). | intlayerCompiler |
intlayerPrune | Tree-shakes unused dictionary fields from the production bundle. | intlayerPrune |
intlayerMinify | Minifies compiled dictionary JSON files and optionally mangles field names. | intlayerMinify |
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. |
