Skip to content
Skill

Intlayer compat

Migrates an existing i18n library to Intlayer while keeping its original API

Intlayer compat 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 compat

This skill guides an agent through moving a project from an existing internationalization library, such as i18next, react-i18next, next-intl, react-intl, vue-i18n or Lingui, onto Intlayer. It relies on compatibility adapters that expose the same public API as the original library, so existing translation calls and hooks can keep working while translations are served from Intlayer dictionaries.

The workflow starts with the Intlayer init command, which creates a configuration file and installs the matching adapter, optionally keeping existing JSON catalogs as the source of truth through a sync plugin. The agent is also pointed to a bundler plugin that aliases the original imports to the adapter at build time, so imports do not need to be rewritten by hand. Lingui projects are reminded to keep the Lingui macro plugin running ahead of the Intlayer compiler.

The skill also covers an alternative path that keeps the current library and its message files, using sync plugins for JSON and Gettext PO catalogs. It notes that features outside translation, such as routing helpers from next-intl, stay with the original library, and it points to per-library migration guides for further detail.

When your agent uses it

Migrates an existing i18n library (i18next, react-i18next, next-intl, next-i18next, react-intl, vue-i18n, Lingui…) to Intlayer through compat adapters that keep the original API. Use when the user asks to "migrate from i18next / next-intl / vue-i18n", "keep useTranslation working", or adopt Intlayer without rewriting translation calls.

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 15 files (68 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-compat 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-compat &&
cp -R "$tmp/.agents/skills/intlayer-compat" ~/.claude/skills/intlayer-compat &&
rm -rf "$tmp"

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

Claude Code docs on skills

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

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

Codex docs on skills

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

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

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

Gemini CLI docs on skills

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

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

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

The SKILL.md format

What it does

Compatibility adapters
Covers adapters that mirror the public API of popular i18n libraries so calls keep working.
Build-time import aliasing
Explains bundler plugins that redirect original imports to the adapter without manual edits.
Catalog sync plugins
Describes JSON and Gettext PO plugins that keep existing message files in sync with Intlayer.
ICU message handling
Notes that plural, select and rich formatting messages are resolved by Intlayer.
Progressive native migration
Outlines moving components later to the native Intlayer API and removing the adapter.

Good for

  • Migrate a Next.js app from next-intl to Intlayer without rewriting translation calls
  • Keep useTranslation working in a React project while switching to Intlayer
  • Move a vue-i18n project onto Intlayer using the existing message syntax
  • Keep existing JSON or PO catalogs and let Intlayer manage them
  • Plan a gradual move from an i18n library to Intlayer's native API

Intlayer compat FAQ

Which i18n libraries does Intlayer compat cover?

Adapters are listed for i18next, react-i18next, next-i18next, next-intl, use-intl, react-intl, vue-i18n and Lingui, with migration guides also referenced for Nuxt I18n, NGX Translate, Transloco, Svelte I18n, Next Translate, Polyglot.js and i18n-js.

Do I have to rewrite my translation calls?

The adapters expose the same public API as the original library, and a bundler plugin aliases the original imports, so the content describes keeping calls unchanged.

Can I keep my existing message files?

Yes. Sync plugins for JSON and Gettext PO can read and write back existing catalogs, though plurals, ICU and insertions are not yet supported for synced files.

Does the skill run any scripts?

No scripts are included; the workflow uses the Intlayer init command and plugin configuration.

How do I install Intlayer compat in Claude Code?

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

Does Intlayer compat 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 compat?

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 compat?

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

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. Sets up Intlayer to extract translatable strings from components automatically

    • Open source
    • 869 GitHub stars
    • Developer tools