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

    IntlayerProvider कंपोनेंट दस्तावेज़

    IntlayerProvider कंपोनेंट React अनुप्रयोगों में Intlayer के लिए मुख्य प्रदाता है। यह अपने सभी children को Intlayer context प्रदान करता है।

    उपयोग

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

    प्रॉप्स

    प्रॉपप्रकारविवरण
    localeLocalesValuesप्रारम्भिक locale जिसे उपयोग किया जाएगा।
    defaultLocaleLocalesValuesफॉलबैक के रूप में उपयोग करने के लिए डिफ़ॉल्ट locale।
    setLocale(locale: LocalesValues) => voidLocale सेट करने के लिए एक कस्टम फ़ंक्शन।
    disableEditorbooleanक्या एडिटर को अक्षम किया जाना चाहिए।
    isCookieEnabledbooleanLocale संग्रहीत करने के लिए कुकीज़ को सक्षम करना है या नहीं।