// compare · @comvi/nuxt vs @nuxtjs/i18n

@comvi/nuxt vs @nuxtjs/i18n

@nuxtjs/i18n is the official Nuxt module, built on vue-i18n, with 738,000 npm downloads a week. @comvi/nuxt is a new module from a library that spans six frameworks, with strict generated key types, ICU plurals and a loader that reads translations from a CDN.

by Eugene Balabai · published · updated · third-party facts checked

// verdict

The official module, or strict types and a platform

  • @comvi/nuxt if a misspelled key or a wrong parameter should fail nuxi typecheck, if plurals should be one ICU message instead of a pipe-separated string, and if copy edited in the platform editor should reach the browser from a CDN without rebuilding the app.
  • @nuxtjs/i18n if you want the module the Nuxt team points to, vue-i18n's syntax and ecosystem, four routing strategies, and translations as static files or from an async loader you write. It is the default for a reason.
  • Both do locale-prefixed routes, useLocaleHead(), <NuxtLinkLocale> and per-locale loading. The differences are in typing, message syntax, and what sits behind the module.

01 What each one is

@nuxtjs/i18n (MIT, 10.6.0 released July 30, 2026) wraps vue-i18n 11 for Nuxt 3 and 4. It adds four routing strategies (no_prefix, prefix_except_default as the default, prefix, prefix_and_default), browser language detection with a cookie, lazy loading of one or more files per locale or of an async loader that can fetch remote messages, per-component <i18n> blocks, and useLocaleHead(), which writes the lang attribute, hreflang alternates, og:locale and a canonical link. Messages use vue-i18n's own syntax: named and list interpolation, pipe-separated plurals (no apples | one apple | {count} apples), linked messages, named number and date formats. ICU MessageFormat is possible through a custom message compiler you implement. Route types come with Nuxt's experimental typedPages; message types are opt-in through the experimental typedOptionsAndMessages, on top of vue-i18n's DefineLocaleMessage declaration merging.

@comvi/nuxt (MIT, 0.6.0) is the Nuxt module of Comvi i18n, the same library that binds React, Vue, Svelte, Solid and Next.js. It supports Nuxt 3 and 4, renders on the server with nothing left to fetch before the first paint, prefixes routes in one of three modes (as-needed, always or never), reads the locale from the URL prefix, cookie and Accept-Language, writes <html lang dir> itself and offers useLocaleHead() for the rest. Plurals, select and ordinals are ICU; number, date and time arguments are not implemented, and the Intl helpers format those in code. comvi typegen or @comvi/vite-plugin writes a TranslationKeys declaration, and t() accepts nothing outside it. Translations come from the Comvi platform's CDN, your own endpoint, or an inline catalog.

02 Side by side

Facts as of 2026-10-14, sizes 2026-10-20@nuxtjs/i18n@comvi/nuxt
Version, license10.6.0, MIT; on vue-i18n ^11.4.80.6.0, MIT; standalone core
Nuxt versionsNuxt 3 and 4Nuxt 3 and 4
Routing strategiesFour: no_prefix, prefix_except_default, prefix, prefix_and_defaultThree: never, as-needed, always
Head: lang, hreflang, og:locale, canonicaluseLocaleHead(), needs baseUrl and a language per locale<html lang dir> automatic; useLocaleHead() for the rest
Link helpers<NuxtLinkLocale>, useLocalePath, useSwitchLocalePath, useLocaleRouteSame four names
Message syntaxvue-i18n: {name}, {0}, pipe plurals, @:linked, named formatsICU plural / select / selectordinal, {name}; no linked messages
ICU MessageFormatThrough a custom compiler you writeBuilt in: plural, select, selectordinal for 1,223 B min+gz, 1,189 B in the Nuxt build
Rich text<i18n-t> with a slot per placeholder: the message holds {action}, the slot holds the markup<T>: tags like <link> in the message, mapped to components; they nest and take parameters
In-context editingNone in the moduleAlt-click text in the running app and save. Translators install the Chrome extension; every plan
Typed keysRoute types via experimental typedPages; message types opt-in (experimental); strict $t keys requested in open issue #3782Generated TranslationKeys; unknown key or wrong parameter is a type error
LoadingConfigured file(s) per locale or an async loader, lazy; per-component <i18n> blocksPer locale and namespace; from the CDN, your loader, or inline; namespaces instead of SFC blocks
Client JavaScript added to a Nuxt 4.6 production build, gzip+28,119 B over the bare app, +30,351 B in the entry file (@nuxtjs/i18n 10.6.0)+13,618 B over the bare app with the ICU compiler composed, +15,914 B in the entry file (+12,429 and +14,725 with the default compiler; @comvi/nuxt 0.6.0)
Library alone, esbuild, Vue external, min+gzvue-i18n 11: 18,693 B with the runtime message compiler, 13,764 B with a precompiled message function and the compiler dropped@comvi/vue with ICU 8,935 B; client runtime 8,729 B; @comvi/nuxt/i18n entry 9,646 B; everything composed 14,499 B
Plain t() speed, Node, million calls/s, higher is bettervue-i18n: static key 0.36; one parameter 0.32Static key 44; one parameter 15 (ICU compiler composed)
Plural formatting speed, Node, million calls/s, higher is bettervue-i18n pipe plural with its named number format: 0.20 M calls/s warm, same output; 44 K messages/s parsing and formatting a 5,000-message catalogICU compiler on a # message: 1.4 M calls/s warm, same output; 350 K messages/s on the same catalog
Editing, review, machine translationOut of scopeComvi platform, free plan included
Copy change to productionStatic locale files follow the deployment cycle; an async loader can fetch remote messagesYes, through the Comvi CDN; with automatic deploys on, published within about a minute

The size rows come from two measurements, on October 20, 2026 by the size-compare harness in the comvi-js repository. The Nuxt rows are nuxi build (Nuxt 4.6.1) of four one-string apps, bare, with @nuxtjs/i18n 10.6.0, and with @comvi/nuxt 0.6.0 with and without the ICU compiler, summing every client JavaScript file under .output/public/_nuxt, gzip level 9. In both i18n apps the error-page chunk shrinks because router helpers move into the entry chunk, which is why the entry-chunk delta is larger than the total. Neither delta contains message bytes: @nuxtjs/i18n fetches the catalog from a Nitro route at startup, Comvi inlines it in the payload. The @nuxtjs/i18n app ships @intlify/message-compiler (16,905 B minified) because its JSON messages compile in the browser, as Comvi's do; the ICU build (comvi.icu: true) is the configuration whose runtime can do the same work as vue-i18n's and adds 1,189 B gzip over the default-compiler build. The messages differ (Hello, world! in the @nuxtjs/i18n app, a plural in the ICU app) and sit outside the measured JavaScript in both; both apps pull the same cookie helpers. The esbuild rows use one configuration (production conditions, minified, gzip level 9) with Vue external; the Comvi cells are the size gate's fixtures fw-nuxt-client-default, fw-nuxt-i18n and fw-nuxt-full-composite, bundled by the harness from the published 0.6.0 packages; the two entries that compose devtools() carry its editor loader. Runtime, measured on October 14 on an earlier 0.6.0 build, before its packages were published: Node 24.20.0 in production mode, plain t() on a static key and with one parameter, then two plural scenarios: warm, the same count formatted for the locale on both sides (Comvi inside a # message, vue-i18n through its named number format) so both produce the same string; and catalog, one instance with 5,000 fresh messages, timed from building the instance through the first format of every message with the count passed pre-formatted; vue-i18n on its pipe-plural syntax, since it has no ICU. Each runtime figure is the median of eight runs. The harness README records the range across them, so read the ratio rather than the absolute rate. On the client these differences are invisible; they show on server-side rendering, which pays the per-call cost on every request for every string on the page, and on cold starts that parse a catalog per request. These deltas describe these apps, not every Nuxt app.

03 When @nuxtjs/i18n is the right call

  • You want the official module. The Nuxt docs point to it, the community answers questions about it, and 738,000 weekly downloads have hit the edge cases.
  • vue-i18n is already in your head. Pipe plurals, linked messages, $n() and $d() with named formats, <i18n> blocks in components. All of that would be rewritten by hand on Comvi.
  • You need prefix_and_default. Serving the default locale both at / and at /en has no Comvi counterpart.
  • Translations in the build are fine. Static locale files ship with each deploy, and an async loader covers a remote source when you need one.

04 When @comvi/nuxt is the right call

  • A wrong key should not reach production. The generated type is the whole set of keys, and a parameter with the wrong name or type fails the typecheck too. @nuxtjs/i18n autocompletes keys when message types are on, but the request to reject unknown ones is still open.
  • One message per string. {count, plural, one {# item} other {# items}} is what the translator sees, with the branches together, and the same syntax works in the React or Svelte app next door.
  • Less client JavaScript in this configuration. In a Nuxt 4.6 production build of a one-string app, @comvi/nuxt with the ICU compiler adds 13,618 bytes of gzipped client JavaScript and @nuxtjs/i18n adds 28,119, measured the same way. Comvi's ICU compiler formats the same plural, count localized on both sides, at 1.4 million calls a second in Node; vue-i18n's pipe plural with its named number format runs at 0.20 million. A plain t() runs at 44 million against 0.36.
  • Translators should not need a rebuild. A translator holds Alt, clicks the text in the running app and saves to the platform, once the app turns the in-context editor on. The platform editor is the other route, and the in-context editor page has the setup. A published edit usually reaches the CDN within seconds, about a minute at most while edits keep coming, and a client gets it on a later fetch or revalidation. How Content Deploy schedules a publish. Comvi supplies the platform and the delivery; with @nuxtjs/i18n that side is yours to build.
  • Markup in the message, elements in the DOM. A translator writes Read the <link>guide</link> as one sentence and <T> maps link to your component; with <i18n-t> the message holds a placeholder and the template holds the markup in a slot, so the translator sees {action} instead of the words inside the link.
  • The other frameworks use the same keys. Comvi's six bindings read one project through one API.

05 Using both, or switching

To keep @nuxtjs/i18n and move only the workflow, import the locale JSON into the Comvi platform and let comvi pull write the files back in CI; vue-i18n syntax passes through untouched. To switch the runtime, start with the vue-i18n migration guide, which rewrites plurals, linked messages and <i18n-t>, then follow the Nuxt page for the module options: strategy becomes localePrefix, detectBrowserLanguage becomes localeDetection and localeCookie, and the composables keep their names.

faq Questions people ask about this pairing

Does @comvi/nuxt support Nuxt 4?

Yes, Nuxt 3 and Nuxt 4. Add the module and useI18n(), <T>, <NuxtLinkLocale> and the routing composables are auto-imported; server rendering and the hand-off to the browser are handled for you. @nuxtjs/i18n 10.x also targets Nuxt 3 and 4.

Does it do locale routing, useLocaleHead and <NuxtLinkLocale>?

Yes. localePrefix is as-needed, always or never; the route middleware reads the locale from the URL prefix, then the cookie and Accept-Language, and a query parameter when you name one, and redirects when URL and locale disagree. useLocalePath(), useSwitchLocalePath(), useLocaleRoute() and <NuxtLinkLocale> prefix links; useLocaleHead() writes canonical, hreflang and og:locale, and the module sets <html lang dir> on its own. @nuxtjs/i18n has four strategies to Comvi's three; its prefix_and_default has no Comvi equivalent.

Why do @nuxtjs/i18n types not reject unknown keys, and how does Comvi differ?

@nuxtjs/i18n generates route types through Nuxt's experimental typedPages and message types only when the experimental typedOptionsAndMessages is turned on; the underlying vue-i18n typing is a DefineLocaleMessage declaration you write unless that option generates it. A request for strict $t key typing from the generated schema (issue #3782, opened 2025-08-13) is open; an earlier one (#1817) was closed as a duplicate in 2023. In Comvi the generated TranslationKeys declaration is the only key type: a key not in it is a TypeScript error, and so is a wrong parameter.

Can translations be loaded per route or namespace?

@nuxtjs/i18n lazy-loads the file or files each locale object names in file or files, and a file can be an async loader that returns messages, for example from an API. Comvi loads per locale and per namespace: the default namespace comes with the first paint, and a namespace a page activates during render is fetched then, from the Comvi CDN or your own loader. Neither splits a single locale file by route on its own.

How much client JavaScript does each module add to a Nuxt app?

Measured on October 20, 2026 with Nuxt 4.6.1's own production build of a one-string app, summing every client JavaScript file, gzip level 9: @nuxtjs/i18n 10.6.0 adds 28,119 bytes over the bare app and @comvi/nuxt 0.6.0 adds 13,618 with the ICU compiler composed (12,429 with the default compiler). Counting only the entry file, which leaves out the other chunks and anything the browser prefetches in the background, the deltas are 30,351 and 15,914 (14,725 without ICU). Neither delta contains the messages themselves: @nuxtjs/i18n fetches the catalog from a Nitro route at startup (one extra request), Comvi inlines it in the page payload. Both compile messages in the browser; on the @nuxtjs/i18n side that is @intlify/message-compiler, 16,905 bytes minified, and the measurement did not precompile. The ICU build renders a plural; the default-compiler build is kept for reference. The app configs and the method are in the size-compare harness.

How does SSR hydration work with CDN-loaded translations?

The first paint needs no fetch. The server loads the active locale and its fallbacks, renders the page, and sends the translations it used in the page payload; the browser picks up from there. The CDN is called again only on a locale switch, or when a page needs a namespace that was not rendered.

Can I keep @nuxtjs/i18n and use the Comvi platform only for management?

Yes. Import the vue-i18n JSON into Comvi, edit and machine-translate there, and let comvi pull write the locale files back in CI. Pipe plurals stay pipe plurals in that setup, because the runtime is still vue-i18n; the editor shows them as plain strings.

What is the migration path from @nuxtjs/i18n?

The vue-i18n migration guide covers the message and component side: useI18n() and $t() keep their names, no items | one item | {count} items becomes an ICU plural called with { count }, linked messages (@:key) are inlined by hand, <i18n-t> becomes <T>, and per-component <i18n> blocks become namespace catalogs. On the Nuxt side, strategy maps to localePrefix and the routing composables keep their names.

When is @nuxtjs/i18n the better choice?

When you want the official module with 738,000 weekly downloads behind it and the vue-i18n ecosystem under it. When you need prefix_and_default, per-component <i18n> blocks, linked messages, named number and date formats in messages, or any of vue-i18n's own syntax your team already knows. Comvi's Nuxt module shipped its first release on 2026-10-10 and is on 0.6.0 now.

method How this page was written

The @nuxtjs/i18n column was read on October 10, 2026 from i18n.nuxtjs.org (options, lazy loading, SEO), the vue-i18n documentation (pluralization, message format, TypeScript), the npm registry (version, license, dependencies) and the two GitHub issues on key typing, which are cited by number so the state can be re-checked. Download counts come from the npm API's fixed range October 2 to 8, 2026. Size figures for both modules come from scripts/size-compare in the comvi-js repository, run on October 20, 2026: Nuxt's own production build of four one-string apps (the Comvi app with and without the ICU compiler) for the module rows, esbuild with one configuration on the published packages for the library rows, Node 24.20.0 in production mode for the runtime row, measured on October 14 on an earlier 0.6.0 build, before its packages were published. Each runtime figure is the median of eight runs. The harness README holds the range across those runs, the app configs, every package inside each bundle, and the caveats. What Comvi does not do is taken from its own limitations page.

sources Where the third-party facts come from

Pricing and feature lists change. If something here is out of date, write to hello@comvi.io and it gets fixed with a new "updated" date.