# Intlayer compat

> Intlayer compat is an open-source agent skill for developer tools. Migrates an existing i18n library to Intlayer while keeping its original API. 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-compat
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-compat
- **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 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.

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

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-compat` 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-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.

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-compat` 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-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.

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-compat` 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-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.

### 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-compat
```

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Intlayer usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage is an open-source agent skill for developer tools.
- [Intlayer next js](https://ai-powered.com/skills/intlayer-next-js): Intlayer next js is an open-source agent skill for developer tools.
- [Intlayer react](https://ai-powered.com/skills/intlayer-react): Intlayer react 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 lit](https://ai-powered.com/skills/intlayer-lit): Intlayer lit is an open-source agent skill for developer tools.
- [Intlayer dev tools](https://ai-powered.com/skills/intlayer-dev-tools): Intlayer dev tools 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.

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