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

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

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

    उपयोग

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

    प्रॉप्स

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