Author:
    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

    bash
    npm install angular-intlayer
    

    Exports

    Import:

    tsx
    import "angular-intlayer";
    

    Setup

    FunctionDescription
    provideIntlayerFunction to provide Intlayer in your Angular application.

    Hooks

    HookDescriptionRelated Doc
    useIntlayerBased on useDictionary, but injects an optimized version of the dictionary from the generated declaration.-
    useDictionaryProcesses objects that look like dictionaries (key, content). It processes t() translations, enumerations, etc.-
    useDictionaryAsyncSame as useDictionary, but handles asynchronous dictionaries.-
    useDictionaryDynamicSame as useDictionary, but handles dynamic dictionaries.-
    useLocaleReturns the current locale and a function to set it.-
    usePathnameReturns the current pathname as a Signal<string> with the locale segment removed. Reactive to popstate via DestroyRef.usePathname
    useIntlReturns the Intl object for the current locale.-
    useLoadDynamicHook to load dynamic dictionaries.-

    Components

    ComponentDescription
    IntlayerMarkdownComponentAngular component that renders markdown content.