Skip to content
Skill

Intlayer next js

Adds Intlayer i18n to Next.js App Router and Pages Router apps with per-component content

Intlayer next js is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
869
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Intlayer next js

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 21 files (385 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Intlayer next js 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.

More from aymericzip/intlayer

  1. Adds Intlayer i18n to Angular apps with per-component content files

    • Open source
    • 869 GitHub stars
    • Developer tools
  2. Adds Intlayer internationalization to Astro sites with server-side translated content

    • Open source
    • 869 GitHub stars
    • Developer tools
  3. Adds Intlayer i18n to Node.js and Bun backends so API responses follow the request locale

    • Open source
    • 869 GitHub stars
    • Developer tools
  4. Shrinks Intlayer translation dictionaries in production builds by purging and minifying

    • Open source
    • 869 GitHub stars
    • Developer tools
  5. Lets your agent run Intlayer CLI commands to build, audit, sync and manage i18n

    • Open source
    • 869 GitHub stars
    • Developer tools
  6. Migrates an existing i18n library to Intlayer while keeping its original API

    • Open source
    • 869 GitHub stars
    • Developer tools