# intlayer react

> Automate React internationalization using Intlayer for component-level content declarations and type-safe hooks.

intlayer react is a free AI agent skill on Agensi by Aymeric Pineau, in Translation & Localization. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Aymeric Pineau](https://www.agensi.io/creators/aymeric-pineau)
- Category: [Translation & Localization](https://www.agensi.io/skills/translation-localization)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-06); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/intlayer-react
- Tags: translation, react, i18n, typescript, vite, react-native

## About this skill

Managing large JSON translation files in React projects leads to merge conflicts, stale keys, and poor developer experience. This skill automates the implementation of Intlayer, a framework that moves internationalization directly into the component folder. It eliminates global dictionary management by generating localized content declarations and React implementation code.

### What it does
- **Content declaration generation** creates `*.content.ts` files with type-safe dictionaries using the `t()` function for multiple locales.
- **Hook implementation** writes React components utilizing `useIntlayer` to consume localized data with full TypeScript support.
- **Environment configuration** provides setup instructions for Vite, Create React App, React Router v7, Tanstack Start, and React Native.
- **Dictionary mapping** ensures unique keys are correctly mapped between declarations and component logic.
- **Utility integration** configures specialized tools like MarkdownRenderer, date/number formatters, and locale switchers.

### How it works
1. **Define Content:** Specify the text and locales needed for a specific UI element.
2. **Generate Declaration:** The skill creates a `myComponent.content.ts` file adjacent to your component.
3. **Inject Logic:** Use the `useIntlayer` hook within your React component to access the defined keys.
4. **Compile:** Run the Intlayer compiler to extract keys and sync translations across the application.

### Frameworks & tools
Specifically designed for React ecosystems including Vite, Expo, Astro, and Tanstack Start. It requires the `intlayer` and `react-intlayer` packages.

### Why this beats prompting it yourself
Generic AI often defaults to outdated `i18next` patterns or manual JSON structures. This skill enforces Intlayer's component-level philosophy, ensuring your translations are co-located, type-safe, and ready for the Intlayer compiler without manual boilerplate.

### Use cases
- Migrating a hardcoded React component to a multi-language setup.
- Scaffolding localized components in React Native or Expo mobile apps.
- Configuring internationalization for modern SSR frameworks like Tanstack Start.
- Implementing localized Markdown rendering or complex data formatters.

### Known limitations
Requires the @intlayer/mcp server for full automation. You must have a base Intlayer configuration file in your project root for the compiler to function correctly.

## Requires

- intlayer
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the intlayer react skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Intlayer React differ from standard internationalization libraries like i18next?

Unlike traditional i18n methods that use massive, centralized JSON files, this skill automates Intlayer's co-location strategy, placing type-safe content declarations directly inside your component folders to eliminate merge conflicts and stale keys.

### Which AI agents and React frameworks are compatible with this skill?

The skill is optimized for any AI agent that supports MCP (Model Context Protocol), such as Claude Desktop or Cursor, and works within React environments including Vite, Expo, Astro, and Tanstack Start.

### What exactly is included in the purchase?

You will receive a specialized AI skill configuration that automates the creation of `.content.ts` files, `useIntlayer` hook implementations, and localized utility setups for Markdown and data formatting.

### Are there any specific technical prerequisites or dependencies I need to install first?

Yes, you must have the `intlayer` and `react-intlayer` packages installed and a base configuration file in your project root for the skill to successfully automate the compilation process.

### Can this skill help with mobile development or complex data formatting?

Absolutely; the skill is designed to handle complex React setups, including localized Markdown rendering, date/number formatting, and scaffolding multi-language support for React Native and Expo mobile applications.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
