aymericzip/intlayer-skills/intlayer-compat
Claude Code and agent skill by aymericzip/intlayer-skills
- community
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-compatSKILL.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
- Run
npx intlayer init --interactive: it createsintlayer.config.ts, installs the adapter and can keep existing JSON catalogs as the source of truth via a sync plugin. - 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 library | Adapter | Bundler plugin (<adapter>/plugin) | |
|---|---|---|---|
i18next | @intlayer/i18next | i18nextVitePlugin | |
react-i18next | @intlayer/react-i18next | reactI18nextVitePlugin | |
next-i18next | @intlayer/next-i18next | createNextI18nPlugin | |
next-intl | @intlayer/next-intl | createNextIntlPlugin | |
use-intl | @intlayer/use-intl | useIntlVitePlugin | |
react-intl | @intlayer/react-intl | reactIntlVitePlugin | |
vue-i18n | @intlayer/vue-i18n | vueI18nVitePlugin | |
@lingui/core, @lingui/react | @intlayer/lingui | linguiVitePlugin |
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 format | Package | Plugins | |
|---|---|---|---|
| JSON | @intlayer/sync-json-plugin | syncJSON, loadJSON | |
| Gettext PO | @intlayer/sync-po-plugin | syncPO, 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.syncJSONacceptsformat: '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
- SKILL.md in the repositoryCheckingskills/intlayer-compat/SKILL.md
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
[](https://verified-skill.com/skills/aymericzip/intlayer-skills/intlayer-compat)