aymericzip/intlayer-skills/intlayer-compat

Claude Code and agent skill by aymericzip/intlayer-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install aymericzip/intlayer-skills/intlayer-compat

SKILL.md

Intlayer Compat Adapters

Compat adapters expose the exact same public API as an existing i18n library, but serve translations from Intlayer dictionaries. Application code keeps calling useTranslation, useTranslations, useIntl, $t… with keys typed against the Intlayer dictionaries.

How it works

  1. Run npx intlayer init --interactive: it creates intlayer.config.ts, installs the adapter and can keep existing JSON catalogs as the source of truth via a sync plugin.
  2. Register the adapter's bundler plugin (<adapter>/plugin). It aliases the original imports to the adapter at build time, so no import is rewritten by hand.

Adapters

Existing libraryAdapterBundler plugin (<adapter>/plugin)
i18next@intlayer/i18nexti18nextVitePlugin
react-i18next@intlayer/react-i18nextreactI18nextVitePlugin
next-i18next@intlayer/next-i18nextcreateNextI18nPlugin
next-intl@intlayer/next-intlcreateNextIntlPlugin
use-intl@intlayer/use-intluseIntlVitePlugin
react-intl@intlayer/react-intlreactIntlVitePlugin
vue-i18n@intlayer/vue-i18nvueI18nVitePlugin
@lingui/core, @lingui/react@intlayer/linguilinguiVitePlugin
Lingui: keep the Lingui macro plugin (@lingui/babel-plugin-lingui-macro / @lingui/swc-plugin) running before the Intlayer compiler.
Features outside translation stay with the original library, e.g. next-intl/navigation (Link, redirect, usePathname). ICU messages (plural, select, #, formatted arguments) and rich formatting (t.rich, <Trans>) are resolved by Intlayer.

Migration guides also exist for Nuxt I18n, NGX Translate, Transloco, Svelte I18n, Next Translate, Polyglot.js and i18n-js.

Keep Existing Catalogs: Sync Plugins

To keep the current library and its message files, register a sync plugin in the plugins of intlayer.config.ts instead of (or alongside) an adapter. Intlayer then manages the catalogs (AI fill, CI tests, CMS) without changing the rendering runtime.

Catalog formatPackagePlugins
JSON@intlayer/sync-json-pluginsyncJSON, loadJSON
Gettext PO@intlayer/sync-po-pluginsyncPO, loadPO
  • sync* reads and writes back the files, keeping them in sync with the dictionaries.
  • load* only loads the files into dictionaries (never writes back), e.g. for catalogs fetched from a remote source.
  • syncJSON accepts format: 'intlayer' | 'icu' | 'i18next' | 'vue-i18n' to match the message syntax of the existing library.
  • Current scope: plain text and translations; insertions, plurals/ICU and the visual editor are not supported yet for synced files.

After migrating

Once the app runs on Intlayer, components can be moved progressively to the native API (useIntlayer + .content files) and the adapter removed.

References

Plugins
Migration Guides

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aymericzip/intlayer-skills/intlayer-compat/badge)](https://verified-skill.com/skills/aymericzip/intlayer-skills/intlayer-compat)

Something wrong with this skill or its page? Tell us.