unstale

npm / vue-i18n

vue-i18n

What changed in vue-i18n 9 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.

20 breaking6 security4 deprecations7 new APIs and options2 performance5 behavior and defaults4 tooling40 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

vue-i18n 1159 changes

Breaking changes 9

  • The sanitizer now closes unclosed elements, removes unmatched end tags, and converts certain unclosed form and out-of-context SVG/MathML elements to text, matching browser behavior; well-formed translations are unchanged.

    11.4.22release notes

  • When enabled, non-string parameters are escaped after conversion to text, like string parameters; message functions still receive parameters as passed.

    11.4.21release notes

  • The sanitizer now turns <script> in translations into text, preventing scripts from running when translations are rendered on the server.

    11.4.18release notes

  • Installation is synchronous like other Vue plugins, so errors are thrown by app.use().

    11.4.17release notes

  • Locales named after Object.prototype properties are now ignored to address a security issue.

    11.4.14release notes

  • Node.js 20 is no longer supported.

    11.4.3release notes

  • Message compiler errors are displayed more strictly.

    11.3.0release notes

  • The tc API for Legacy API mode is dropped.

    11.0.0release notes

  • The $tc API for Legacy API mode is dropped.

    11.0.0release notes

Security 6

  • The sanitizer now follows browser tag and attribute parsing rules, checking every attribute and escaping unclosed tags, comments, and certain elements as text.

    11.4.19release notes

  • Neutralizes xlink:href, base, and SVG animations in sanitized translated HTML.

    11.4.17release notes

  • escapeParameter now escapes both list and named values to address a security issue.

    11.4.14release notessecurity advisory

  • sanitizeTranslatedHtml neutralizes the srcdoc attribute to address a security issue.

    11.4.14release notes

  • Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages

    11.4.14security advisory

  • Hardens javascript URL sanitization to improve security.

    11.4.4release notes

Deprecations 2

  • Legacy API mode still works in v11 for compatibility but is deprecated and will be removed in v12.

    11.0.0release notes

  • The v-t custom directive still works in v11 for compatibility but is deprecated and will be removed in v12.

    11.0.0release notes

New APIs and options 2

Performance 1

  • Avoids translation timeline measurement when devtools are not enabled.

    11.3.2release notes

Behavior and default changes 2

  • Array message references are no longer retained.

    11.4.9release notes

  • Adds compatibility with Vue3 vapor mode for v11.

    11.2.0release notes

Fixes and other changes 37

  • A line break or tab after a linked key now ends the key, so the linked message renders and a line break dropped after it is kept.

    11.4.20release notes

  • Regular expressions suppress warnings for keys that match them.

    11.4.17release notes

  • Bundler builds read __VUE_PROD_DEVTOOLS__ only when it is defined, allowing Node.js to run them in production.

    11.4.16release notes

  • Warnings for missing formats name the datetime or number format that was not found.

    11.4.15release notes

  • Flat keys under a message AST are retained, including keys that end with cacheKey or pass through a prop key or cacheKey.

    11.4.15release notes

  • Component i18n options are copied instead of being mutated with internal values.

    11.4.15release notes

  • Unknown linked modifiers are ignored.

    11.4.15release notes

  • A message that cannot be compiled is returned as is in both development and production.

    11.4.15release notes

  • Object.prototype properties are not read as named values.

    11.4.15release notes

  • Node.js ESM can load the Node.js builds so SSR works in production.

    11.4.15release notes

  • Locale, key, plural rule, and key-value message lookups read only own properties, avoiding inherited properties.

    11.4.15release notes

  • count and n are no longer written into the named values of a plural call.

    11.4.15release notes

  • te() looks up messages in the same way as t().

    11.4.15release notes

  • tm() looks up messages in the same way as t().

    11.4.15release notes

  • The core context is synced when inheritLocale is enabled.

    11.4.12release notes

  • Locale chains are cached by fallback identity.

    11.4.12release notes

  • Avoids throwing on AST keys in the devtools groupId.

    11.4.10release notes

  • The locale chain cache is invalidated when the fallback changes, so locale resolution uses the updated fallback.

    11.4.9release notes

  • Fallback handling uses map keys and skips the default.

    11.4.9release notes

  • Tree-shaking is preserved when using Vapor.

    11.4.9release notes

  • The part option is respected when the format key is omitted in number and datetime formatting.

    11.4.5release notes

  • The formatter now passes component children as slots.

    11.4.1release notesrelease notes

  • Prevents register* functions from being tree-shaken in intlify/core.

    11.3.2release notes

  • Linked messages now resolve keys containing dots.

    11.3.1release notes

  • $n overloads use DefineNumberFormat instead of DefineDateTimeFormat.

    11.3.1release notes

  • Suppressing automatic locale fallback with ! no longer breaks n/$n and d/$d formatting.

    11.3.0release notes

  • The incorrect $d type was fixed.

    11.3.0release notes

  • Key paths are now resolved correctly.

    11.3.0release notes

  • Modifiers no longer skip missing translation keys.

    11.3.0release notes

  • Using n() with undefined no longer throws errors.

    11.3.0release notes

  • Using $n() with undefined no longer throws errors.

    11.3.0release notes

  • Fixed te returning false when the key contains a do.

    11.3.0release notes

  • The v-t directive now rerenders when the locale switches.

    11.3.0release notes

  • Avoids a bundler warning related to getCurrentInstance compatibility.

    11.2.3release notes

  • Avoids bundler static analysis for namespace imports.

    11.2.2release notes

  • Adds support for Vue3 vapor mode in the options API.

    11.2.0release notes

  • The tm function now accepts DefineLocaleMessage key types.

    11.0.0release notes

vue-i18n 1020 changes

Breaking changes 10

  • The allowComposition option was dropped.

    10.0.0release notes

  • The Legacy API formatter option codes were fully removed.

    10.0.0release notes

  • getChoiceIndex was fully removed from the Legacy API.

    10.0.0release notes

  • Compatibility with the v8.x translation component was dropped.

    10.0.0release notes

  • Modulo syntax was dropped.

    10.0.0release notes

  • The Legacy API preserveDirectiveContent option codes were fully removed.

    10.0.0release notes

  • Legacy API mode now uses the same overload signatures as Composition API mode.

    10.0.0release notes

  • The v8.x compatibility behavior of te was dropped.

    10.0.0release notes

  • The preserve modifier codes were fully removed from the directive.

    10.0.0release notes

  • The vue-i18n-bridge package was dropped.

    10.0.0release notes

Deprecations 2

  • The Legacy API function remains available for migration but displays a console warning; pluralization is supported by t.

    10.0.0release notes

  • The Legacy API function remains available for migration but displays a console warning; pluralization is supported by $t.

    10.0.0release notes

New APIs and options 1

  • An interface is provided to extend the Locale type in TypeScript, useful when using vue-i18n as part of a framework.

    10.0.0release notes

Performance 1

Behavior and default changes 3

  • JIT compilation is enabled by default, addressing difficulties with CSP-restricted runtimes and dynamically fetched messages.

    10.0.0release notes

  • The minimal-feature alternative distribution moved from experimental status to general availability.

    10.0.0release notes

  • Legacy API mode now uses the same overload signatures as Composition API mode.

    10.0.0release notes

Fixes and other changes 3

vue-i18n 99 changes

Breaking changes 1

  • The ES module bundle including the runtime and Message Compiler is configured as the default at the package module field.

    9.0.0upgrade guide

New APIs and options 4

  • A Vue I18n API optimized for Vue 3 Composition API is introduced.

    9.0.0upgrade guide

  • A low-level i18n API is provided for developers who need an API beneath the Vue I18n APIs.

    9.0.0upgrade guide

  • A compiler API compiles Vue I18n message syntax into executable JavaScript functions and supports syntax error reporting and source maps.

    9.0.0upgrade guide

  • A mostly compatible API is provided to help existing Vue I18n applications migrate smoothly to Vue 3.

    9.0.0upgrade guide

Tooling 4

  • An official CLI tool for i18n development is introduced.

    9.0.0upgrade guide

  • An official Vite plugin for Vue I18n is introduced.

    9.0.0upgrade guide

  • Locale messages can be pre-compiled using bundler middleware, avoiding runtime compilation cost and improving rendering performance.

    9.0.0upgrade guide

  • The development build integrates with Vue DevTools, adding a component inspector extension, an i18n resources inspector, and a custom timeline.

    9.0.0upgrade guide