Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Unified documentation for all exports"v8.0.021/01/2026
The content of this page was translated using an AI.
See the last version of the original content in EnglishIf you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
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
Exports
Plugin
Import:
Open the table in a modal to view all data content clearly
| Function | Description |
|---|---|
installIntlayer | Vue plugin to install Intlayer in your application. |
Composables
Import:
Open the table in a modal to view all data content clearly
| Composable | Description | Related documentation |
|---|---|---|
useIntlayer | Based on useDictionary, but injects an optimised version of the dictionary from the generated declaration. | - |
useDictionary | Processes objects that resemble 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. | - |
useRewriteURL | Client-side composable to manage URL rewrites. Automatically updates the URL if a localised rewrite rule exists. | useRewriteURL |
useIntl | Returns the Intl object for the current locale. | - |
useLoadDynamic | Composable to load dynamic dictionaries. | - |
Functions
Import:
Open the table in a modal to view all data content clearly
| Function | Description |
|---|---|
getDictionary | Processes objects resembling dictionaries (key, content). Handles t() translations, enumerations, etc. |
getIntlayer | Based on getDictionary, but injects an optimised version of the dictionary from the generated declaration. |
Markdown
Import:
Open the table in a modal to view all data content clearly
| Function | Description |
|---|---|
installIntlayerMarkdown | Vue plugin to install Intlayer Markdown in your application. |