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

    IntlayerProvider Component Documentation

    The IntlayerProvider component is the primary provider for Intlayer in React applications. It supplies the Intlayer context to all of its child components.

    Usage

    tsx
    import { IntlayerProvider } from "react-intlayer";
    
    const App = ({ children }) => <IntlayerProvider>{children}</IntlayerProvider>;
    

    Props

    PropTypeDescription
    localeLocalesValuesThe initial locale to use.
    defaultLocaleLocalesValuesThe default locale to use as a fallback.
    setLocale(locale: LocalesValues) => voidA custom function to set the locale.
    disableEditorbooleanWhether to disable the editor.
    isCookieEnabledbooleanWhether to enable cookies to store the locale.