aymericzip/intlayer-skills / skills/intlayer-solid
intlayer-solid
VerifiedIntegrates 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.
| File | Kind | Size |
|---|---|---|
| LICENCE.md | markdown | 10.7 KB |
| SKILL.md | skill md | 3.3 KB |
| references/compiler.md | markdown | 14.6 KB |
| references/concept_collections.md | markdown | 5.6 KB |
| references/concept_variants.md | markdown | 20.9 KB |
| references/environment_solid-start.md | markdown | 53.3 KB |
| references/environment_tanstack-start_solid.md | markdown | 55.0 KB |
| references/environment_vite-and-solid.md | markdown | 41.1 KB |
| references/formatters.md | markdown | 17.3 KB |
| references/packages_solid-intlayer_IntlayerProvider.md | markdown | 1.9 KB |
| references/packages_solid-intlayer_exports.md | markdown | 5.0 KB |
| references/packages_solid-intlayer_useIntlayer.md | markdown | 1.9 KB |
| references/packages_solid-intlayer_useLocale.md | markdown | 1.8 KB |
| references/packages_solid-intlayer_usePathname.md | markdown | 3.4 KB |
| references/packages_solid-intlayer_useRewriteURL.md | markdown | 2.0 KB |
references/packages_solid-intlayer_useIntlayer.md
View on GitHub---
createdAt: 2026-01-21
updatedAt: 2026-09-27
priority: 5
title: useIntlayer Hook Documentation | solid-intlayer
description: "Use useIntlayer in Solid to read a dictionary's localized content by key, as reactive values that update when the locale changes."
keywords:
- useIntlayer
- dictionary
- Intlayer
- intlayer
- Internationalization
- Documentation
- Solid
- Solid.js
slugs:
- doc
- packages
- solid-intlayer
- useIntlayer
history:
- version: 8.9.0
date: 2026-05-04
changes: "Update Solid useIntlayer API usage to direct property access"
- version: 8.0.0
date: 2026-01-21
changes: "Unified documentation for all exports"
author: aymericzip
---
# useIntlayer Hook Documentation
The `useIntlayer` hook allows you to retrieve localized content from a dictionary using its key. In Solid, this hook returns reactive content that updates whenever the locale changes.
## Usage
```tsx
import { useIntlayer } from "solid-intlayer";
const MyComponent = () => {
const content = useIntlayer("my-dictionary-key");
return (
<div>
<h1>{content.title}</h1>
<p>{content.description}</p>
</div>
);
};
```
## Description
The hook performing the following tasks:
1. **Locale Detection**: It uses the current locale from the `IntlayerProvider` context.
2. **Dictionary Injection**: it automatically injects the content of the dictionary corresponding to the provided key, using the optimized declarations generated by the Intlayer compiler.
3. **Reactivity**: It returns reactive content that automatically updates when the global locale state changes.
4. **Translation Processing**: it resolves the content based on the detected locale, processing any `t()`, `enu()`, etc., definitions found within the dictionary.
## Parameters
- **key**: The unique key of the dictionary (as defined in your content declaration files).
- **locale** (optional): Override the current locale.
## Returns
Reactive content.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |