Author:
    Creation:2026-11-23Last update:2026-11-23

    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

    1. Keep your code. Your useTranslation, useTranslations, useIntl, useLingui, $_ or | translate calls stay as they are.
    2. Keep your message files. The sync JSON plugin (or the sync PO plugin) reads your existing files and writes translations back to them.
    3. 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

    LibraryFrameworkAdapterMigration guide
    i18nextJavaScript@intlayer/i18nextMigrate from i18next
    react-i18nextReact@intlayer/react-i18nextMigrate from react-i18next
    next-i18nextNext.js@intlayer/next-i18nextMigrate from next-i18next
    next-intlNext.js@intlayer/next-intlMigrate from next-intl
    react-intlReact@intlayer/react-intlMigrate from react-intl
    LinguiReact@intlayer/linguiMigrate from Lingui
    vue-i18nVue@intlayer/vue-i18nMigrate from vue-i18n
    @nuxtjs/i18nNuxt@intlayer/nuxtjs-i18nMigrate from @nuxtjs/i18n
    svelte-i18nSvelte@intlayer/svelte-i18nMigrate from svelte-i18n
    ngx-translateAngular@intlayer/ngx-translateMigrate 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:

    bash
    npx intlayer init --interactive
    

    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: