Skip to content

aymericzip/intlayer-skills / skills/intlayer-solid

intlayer-solid

Verified

Integrates Intlayer internationalization with SolidJS components. Use when the user asks to "setup SolidJS i18n", create a new translated component, use the "useIntlayer" hook in Solid, or configure providers.

references/packages_solid-intlayer_IntlayerProvider.md

View on GitHub
---
createdAt: 2026-01-21
updatedAt: 2026-01-21
priority: 5
title: IntlayerProvider Component Documentation | solid-intlayer
description: See how to use the IntlayerProvider component for solid-intlayer package
keywords:
  - IntlayerProvider
  - provider
  - Intlayer
  - intlayer
  - Internationalization
  - Documentation
  - Solid
  - Solid.js
slugs:
  - doc
  - packages
  - solid-intlayer
  - IntlayerProvider
history:
  - version: 8.0.0
    date: 2026-01-21
    changes: "Unified documentation for all exports"
author: aymericzip
---

# 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

```tsx
import { IntlayerProvider } from "solid-intlayer";

const App = () => (
  <IntlayerProvider>
    <MyComponent />
  </IntlayerProvider>
);
```

## Description

The `IntlayerProvider` performs the following roles:

1. **State Management**: It initializes and stores the current locale, using signals for reactivity.
2. **Locale Resolution**: It determines the initial locale based on cookies, browser preferences, or the default configuration.
3. **Context Injection**: It makes the locale and the `setLocale` function available to any component via hooks like `useIntlayer` or `useLocale`.
4. **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.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall