Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Init history"v9.8.511/23/2026
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Migrate to Intlayer from your current i18n library
Rewriting every translation call of a large app is rarely an option. Intlayer provides compat adapters: packages that expose the same API as your current i18n library, but serve messages from Intlayer dictionaries.
How it works
- Keep your code. Your
useTranslation,useTranslations,useIntl,useLingui,$_or| translatecalls stay as they are. - Keep your message files. The sync JSON plugin (or the sync PO plugin) reads your existing files and writes translations back to them.
- Swap the bundler plugin. Each adapter ships a plugin that builds your dictionaries and redirects imports of the original library to the adapter. No import changes are needed.
You get typed keys, per-page dictionary loading, AI translation through the CLI, the visual editor and the CMS. You can then move to native .content.ts files one component at a time.
To understand where these libraries come from, read the history of JavaScript i18n.
Available compat adapters
Open the table in a modal to view all data content clearly
| Library | Framework | Adapter | Migration guide |
|---|---|---|---|
| i18next | JavaScript | @intlayer/i18next | Migrate from i18next |
| react-i18next | React | @intlayer/react-i18next | Migrate from react-i18next |
| next-i18next | Next.js | @intlayer/next-i18next | Migrate from next-i18next |
| next-intl | Next.js | @intlayer/next-intl | Migrate from next-intl |
| react-intl | React | @intlayer/react-intl | Migrate from react-intl |
| Lingui | React | @intlayer/lingui | Migrate from Lingui |
| vue-i18n | Vue | @intlayer/vue-i18n | Migrate from vue-i18n |
| @nuxtjs/i18n | Nuxt | @intlayer/nuxtjs-i18n | Migrate from @nuxtjs/i18n |
| svelte-i18n | Svelte | @intlayer/svelte-i18n | Migrate from svelte-i18n |
| ngx-translate | Angular | @intlayer/ngx-translate | Migrate from ngx-translate |
Quick start
Whatever your library, the first step is the same. intlayer init detects your current i18n library and installs the matching adapter:
Copy the code to the clipboard
Then follow the migration guide of your library above.
Starting from scratch?
If your app has no i18n library yet, skip the adapters and start with the native API:
