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

    angular-intlayer Package

    The angular-intlayer package provides the necessary tools to integrate Intlayer into Angular applications. It includes providers and services for handling multilingual content.

    Installation

    npm install angular-intlayer

    Exports

    Import:

    import "angular-intlayer";

    Setup

    Function Description
    provideIntlayer Function to provide Intlayer in your Angular application.

    Hooks

    Hook Description Related Doc
    useIntlayer Based on useDictionary, but injects an optimised 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. -
    useIntl Returns the Intl object for the current locale. -
    useLoadDynamic Hook to load dynamic dictionaries. -

    Components

    Component Description
    IntlayerMarkdownComponent Angular component that renders Markdown content.