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_exports.md

View on GitHub
---
createdAt: 2026-01-21
updatedAt: 2026-01-21
priority: 5
title: solid-intlayer Package Documentation
description: Solid-specific integration for Intlayer, providing providers and hooks for Solid applications.
keywords:
  - solid-intlayer
  - solidjs
  - internationalization
  - i18n
slugs:
  - doc
  - packages
  - solid-intlayer
  - exports
history:
  - version: 10.0.0
    date: 2026-06-23
    changes: "Add usePathname utility"
  - version: 8.0.0
    date: 2026-01-21
    changes: "Unified documentation for all exports"
author: aymericzip
---

# solid-intlayer Package

The `solid-intlayer` package provides the necessary tools to integrate Intlayer into Solid applications. It includes providers and hooks for handling multilingual content.

## Installation

```bash
npm install solid-intlayer
```

## Exports

### Provider

Import:

```tsx
import "solid-intlayer";
```

| Component          | Description                                                                      | Related Doc                                                                                                                   |
| ------------------ | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `IntlayerProvider` | The main provider that wraps your application and provides the Intlayer context. | [IntlayerProvider](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/IntlayerProvider.md) |

### Hooks

Import:

```tsx
import "solid-intlayer";
```

| Hook                   | Description                                                                                                       | Related Doc                                                                                                             |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `useIntlayer`          | Based on `useDictionary`, but injects an optimized version of the dictionary from the generated declaration.      | [useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useIntlayer.md)     |
| `useDictionary`        | Processes objects that look like dictionaries (key, content). It processes `t()` translations, enumerations, etc. | -                                                                                                                       |
| `useDictionaryAsync`   | Same as `useDictionary`, but handles asynchronous dictionaries.                                                   | -                                                                                                                       |
| `useDictionaryDynamic` | Same as `useDictionary`, but handles dynamic dictionaries.                                                        | -                                                                                                                       |
| `useLocale`            | Returns the current locale and a function to set it.                                                              | [useLocale](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useLocale.md)         |
| `usePathname`          | Returns the current pathname as an `Accessor<string>` with the locale segment removed. Reactive to `popstate`.    | [usePathname](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/usePathname.md)     |
| `useRewriteURL`        | Client-side hook to manage URL rewrites. Automatically updates the URL if a localized rewrite rule exists.        | [useRewriteURL](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/solid-intlayer/useRewriteURL.md) |
| `useIntl`              | Returns the Intl object for the current locale.                                                                   | -                                                                                                                       |
| `useLoadDynamic`       | Hook to load dynamic dictionaries.                                                                                | -                                                                                                                       |
| `t`                    | Picks content based on the current locale.                                                                        | [translation](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/dictionary/translation.md)                  |

### Components

Import:

```tsx
import "solid-intlayer";
```

| Component          | Description                              |
| ------------------ | ---------------------------------------- |
| `MarkdownProvider` | Provider for markdown rendering context. |
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: 198kUpdated 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: 198kUpdated 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: 198kUpdated Claude CodeCodexVerifiedInstall