Creation:2026-01-21Last update:2026-01-21
Reference this doc to your favorite AI assistantChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Unified documentation for all exports"v8.0.01/21/2026
Edit this doc
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy
Copy doc Markdown to clipboard
IntlayerProvider Component Documentation
The IntlayerProvider is the root component that provides the internationalization context to your Solid application. It manages the current locale state and ensures that all child components can access translations.
Usage
Description
The IntlayerProvider performs the following roles:
- State Management: It initializes and stores the current locale, using signals for reactivity.
- Locale Resolution: It determines the initial locale based on cookies, browser preferences, or the default configuration.
- Context Injection: It makes the locale and the
setLocalefunction available to any component via hooks likeuseIntlayeroruseLocale. - Persistence: It automatically syncs locale changes with cookies or local storage to maintain the user's preference across sessions.
Props
- locale (optional): Manually set the current locale.
- defaultLocale (optional): Override the default locale from the configuration.
- setLocale (optional): Provide a custom locale setter function.
- disableEditor (optional): Disable the visual editor integration.
- isCookieEnabled (optional): Enable or disable cookie persistence.