Creation:2026-01-21Last update:2026-01-21

    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

    npm install vue-intlayer

    Exports

    Plugin

    Import:

    import "vue-intlayer";
    Function Description
    installIntlayer Vue plugin to install Intlayer in your application.

    Composables

    Import:

    import "vue-intlayer";
    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:

    import "vue-intlayer";
    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:

    import "vue-intlayer/markdown";
    Function Description
    installIntlayerMarkdown Vue plugin to install Intlayer Markdown in your application.