מחבר:
הפנו את עוזר ה-AI המועדף עליכם למסמך הזהChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Add usePathname utility"v10.0.023.6.2026
- "Unified documentation for all exports"v8.0.021.1.2026
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתעריכת המסמך הזה
אם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודנוצר:2026-01-21עדכון אחרון:2026-01-21
העתקה
העתקת ה-Markdown של המסמך ללוח
vue-intlayer Package
The vue-intlayer package provides the necessary tools to integrate Intlayer into Vue applications. It includes a Vue plugin and composables for handling multilingual content.
Installation
bash
העתקת קוד
העתקת הקוד ללוח
Exports
Plugin
Import:
tsx
העתקת קוד
העתקת הקוד ללוח
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Function | Description |
|---|---|
installIntlayer | Vue plugin to install Intlayer in your application. |
Composables
Import:
tsx
העתקת קוד
העתקת הקוד ללוח
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Composable | Description | Related Doc |
|---|---|---|
useIntlayer | Based on useDictionary, but injects an optimized version of the dictionary from the generated declaration. | - |
useDictionary | Processes objects that look like dictionaries (key, content). It processes t() translations, enumerations, etc. | - |
useDictionaryAsync | Same as useDictionary, but handles asynchronous dictionaries. | - |
useDictionaryDynamic | Same as useDictionary, but handles dynamic dictionaries. | - |
useLocale | Returns the current locale and a function to set it. | - |
usePathname | Returns the current pathname as a ComputedRef<string> with the locale segment removed. Reactive to popstate. | usePathname |
useRewriteURL | Client-side composable to manage URL rewrites. Automatically updates the URL if a localized rewrite rule exists. | useRewriteURL |
useIntl | Returns the Intl object for the current locale. | - |
useLoadDynamic | Composable to load dynamic dictionaries. | - |
Functions
Import:
tsx
העתקת קוד
העתקת הקוד ללוח
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Function | Description |
|---|---|
getDictionary | Processes objects that look like dictionaries (key, content). It processes t() translations, enumerations, etc. |
getIntlayer | Based on getDictionary, but injects an optimized version of the dictionary from the generated declaration. |
Markdown
Import:
tsx
העתקת קוד
העתקת הקוד ללוח
הצגת כל תוכן הטבלה
פתיחת הטבלה בחלון כדי לראות את כל תוכן הנתונים בבירור
| Function | Description |
|---|---|
installIntlayerMarkdown | Vue plugin to install Intlayer Markdown in your application. |
