# Intlayer react

> Intlayer react is an open-source agent skill for developer tools. Adds Intlayer i18n to React apps with per-component translated content files. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aymericzip/intlayer/tree/main/.agents/skills/intlayer-react
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-react
- **Collection:** https://github.com/aymericzip/intlayer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through adding Intlayer internationalization to a React project. Translations are kept in content declaration files placed next to each component, rather than in one large global dictionary. The agent is shown how to write such a file with the translation helper and how to read its strings through the useIntlayer hook inside a component.

The skill also covers setup for several React environments, including Vite, Create React App, React Router v7, TanStack Start, React Native with Expo, Lynx, Astro and Storybook. It points to guidance on providers, formatters, variants and collections, and on the Intlayer compiler, which can extract content keys from components through a CLI command or during the app build.

It includes bundle optimization rules: content fields should be read by name so the build can purge unused entries, and dictionaries should not be indexed at runtime. Work is done in a TypeScript or JavaScript React codebase with the intlayer and react-intlayer packages.

## When your agent uses it

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-react)
- [License: Apache-2.0](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-react)

## Features

- **Component-level content files:** Shows how to declare translations in content files placed beside each React component.
- **useIntlayer hook usage:** Explains how to read translated strings and React nodes inside components with the hook.
- **Framework setup guides:** Links setup references for Vite, Create React App, React Router, TanStack Start, Expo and Storybook.
- **Provider and package references:** Covers the IntlayerProvider, locale, dictionary and formatting APIs of the React packages.
- **Key extraction compiler:** Describes extracting content keys from components with a CLI command or at build time.
- **Bundle optimization rules:** Lists access patterns that let the build purge and minify unused dictionary content.

## Good for

- Set up i18n in a React app with Intlayer
- Create a new translated React component
- Move hardcoded text in a component into content files
- Add a locale switcher or provider to a React project
- Extract content keys from components with the Intlayer compiler

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-react` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/intlayer-react &&
cp -R "$tmp/.agents/skills/intlayer-react" ~/.claude/skills/intlayer-react &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/intlayer-react` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-react` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/intlayer-react &&
cp -R "$tmp/.agents/skills/intlayer-react" ~/.agents/skills/intlayer-react &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/intlayer-react` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-react` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/intlayer-react &&
cp -R "$tmp/.agents/skills/intlayer-react" ~/.cursor/skills/intlayer-react &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intlayer-react` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aymericzip/intlayer.git --path .agents/skills/intlayer-react
```

Or copy the folder to `~/.gemini/skills/intlayer-react` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/intlayer-react`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/intlayer-react &&
cp -R "$tmp/.agents/skills/intlayer-react" ~/.copilot/skills/intlayer-react &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/intlayer-react` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aymericzip/intlayer.git
```

Then copy `intlayer/.agents/skills/intlayer-react` into your agent's skills folder as `intlayer-react`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Intlayer react trigger?

It applies when the user asks to set up React i18n, create a new translated component, use the useIntlayer hook, or configure providers.

### What does the skill create in a project?

For a translated component it creates two files: a content declaration file with the translations and a React component that calls useIntlayer.

### Does Intlayer react include scripts?

No scripts are bundled with this skill; it provides instructions and reference files.

### How do I install Intlayer react in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/intlayer-react to use it in all your projects, or to .claude/skills/intlayer-react in one project.

### Does Intlayer react run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Intlayer react?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Intlayer react?

The closest alternatives to Intlayer react are Intlayer next js, Intlayer preact, Intlayer usage, Intlayer svelte and Intlayer vanilla.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Intlayer next js](https://ai-powered.com/skills/intlayer-next-js): Intlayer next js is an open-source agent skill for developer tools.
- [Intlayer preact](https://ai-powered.com/skills/intlayer-preact): Intlayer preact is an open-source agent skill for developer tools.
- [Intlayer usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage is an open-source agent skill for developer tools.
- [Intlayer svelte](https://ai-powered.com/skills/intlayer-svelte): Intlayer svelte is an open-source agent skill for developer tools.
- [Intlayer vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla is an open-source agent skill for developer tools.
- [Intlayer angular](https://ai-powered.com/skills/intlayer-angular): Intlayer angular is an open-source agent skill for developer tools.
- [Intlayer solid](https://ai-powered.com/skills/intlayer-solid): Intlayer solid is an open-source agent skill for developer tools.
- [Intlayer lit](https://ai-powered.com/skills/intlayer-lit): Intlayer lit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/intlayer-react
