# Intlayer next js

> Intlayer next js is an open-source agent skill for developer tools. Adds Intlayer i18n to Next.js App Router and Pages Router apps with per-component content. 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-next-js
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-next-js
- **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 Next.js project. Content is declared in content files that sit next to the components using them, rather than in one large global translation file. The agent is walked through creating a declaration file with translated strings and then reading those strings with the useIntlayer hook.

It covers setup for the App Router, including Next.js 14 and 15 variants, and for the Pages Router. It describes mounting an IntlayerProvider in the locale layout, using the same hook in Server Components and client components, and optimizing the bundle by reading content fields by name. It also points to the Intlayer compiler for extracting content keys and to reference pages on formatters, variants, collections and middleware.

The skill has no scripts. Working with it assumes a Next.js project using TypeScript and the intlayer and next-intlayer packages, with the agent able to read and edit project files.

## When your agent uses it

> Integrates Intlayer internationalization with Next.js App Router and Pages Router. Use when the user asks to "setup Next.js i18n", use "useIntlayer" in Server Components, or handle client-side translations in Next.js.

## 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-next-js)
- [License: Apache-2.0](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-next-js)

## Features

- **Component-level content files:** Shows how to declare translations in content files placed beside each component.
- **App and Pages Router setup:** Covers configuring Intlayer for the Next.js App Router and the Pages Router, including version-specific notes.
- **Isomorphic useIntlayer hook:** Explains reading translated content from both Server Components and client components.
- **Locale provider configuration:** Describes mounting one IntlayerProvider in the locale layout for the whole app.
- **Bundle optimization rules:** Lists patterns that let the build purge unused dictionary content.
- **Compiler and key extraction:** Points to the CLI command that extracts content keys from components.

## Good for

- Set up i18n in a new Next.js App Router project
- Translate a component into several languages with a content file
- Use translated strings inside a Server Component
- Add client-side translations to a "use client" component
- Migrate a Pages Router app to Intlayer

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-next-js` 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-next-js &&
cp -R "$tmp/.agents/skills/intlayer-next-js" ~/.claude/skills/intlayer-next-js &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-next-js` 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-next-js &&
cp -R "$tmp/.agents/skills/intlayer-next-js" ~/.agents/skills/intlayer-next-js &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-next-js` 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-next-js &&
cp -R "$tmp/.agents/skills/intlayer-next-js" ~/.cursor/skills/intlayer-next-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intlayer-next-js` 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-next-js
```

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

### VS Code

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

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

For one project only, put the folder in `.github/skills/intlayer-next-js` 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-next-js` into your agent's skills folder as `intlayer-next-js`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Intlayer next js trigger?

It is meant for requests such as setting up Next.js i18n, using useIntlayer in Server Components, or handling client-side translations in Next.js.

### Does Intlayer next js need any scripts or extra tools?

It ships no scripts. It relies on the Intlayer packages in the project and on instructions for reading and writing project files.

### Which Next.js versions are covered?

The skill includes separate reference guides for Next.js in general, Next.js 14, Next.js 15 and the Pages Router.

### How do I install Intlayer next js in Claude Code?

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

### Does Intlayer next js 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 next js?

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 next js?

The closest alternatives to Intlayer next js are Intlayer react, Intlayer angular, Intlayer vanilla, Intlayer backend and Intlayer usage.

## Where this comes from

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

## Alternatives

- [Intlayer react](https://ai-powered.com/skills/intlayer-react): Intlayer react 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 vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla is an open-source agent skill for developer tools.
- [Intlayer backend](https://ai-powered.com/skills/intlayer-backend): Intlayer backend 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 vue](https://ai-powered.com/skills/intlayer-vue): Intlayer vue is an open-source agent skill for developer tools.
- [Intlayer remix](https://ai-powered.com/skills/intlayer-remix-aymericzip): Intlayer remix is an open-source agent skill for web localization.

---
Source: https://ai-powered.com/skills/intlayer-next-js
