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 initvue-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.
When enabled, non-string parameters are escaped after conversion to text, like string parameters; message functions still receive parameters as passed.
The sanitizer now turns <script> in translations into text, preventing scripts from running when translations are rendered on the server.
Installation is synchronous like other Vue plugins, so errors are thrown by app.use().
Locales named after Object.prototype properties are now ignored to address a security issue.
Node.js 20 is no longer supported.
Message compiler errors are displayed more strictly.
The tc API for Legacy API mode is dropped.
The $tc API for Legacy API mode is dropped.
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.
Neutralizes xlink:href, base, and SVG animations in sanitized translated HTML.
escapeParameter now escapes both list and named values to address a security issue.
sanitizeTranslatedHtml neutralizes the srcdoc attribute to address a security issue.
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
Hardens javascript URL sanitization to improve security.
Deprecations 2
Legacy API mode still works in v11 for compatibility but is deprecated and will be removed in v12.
The v-t custom directive still works in v11 for compatibility but is deprecated and will be removed in v12.
New APIs and options 2
Adds support for isolated scope.
Support for escape sequences was added.
Performance 1
Avoids translation timeline measurement when devtools are not enabled.
Behavior and default changes 2
Array message references are no longer retained.
Adds compatibility with Vue3 vapor mode for v11.
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.
Regular expressions suppress warnings for keys that match them.
Bundler builds read __VUE_PROD_DEVTOOLS__ only when it is defined, allowing Node.js to run them in production.
Warnings for missing formats name the datetime or number format that was not found.
Flat keys under a message AST are retained, including keys that end with cacheKey or pass through a prop key or cacheKey.
Component i18n options are copied instead of being mutated with internal values.
Unknown linked modifiers are ignored.
A message that cannot be compiled is returned as is in both development and production.
Object.prototype properties are not read as named values.
Node.js ESM can load the Node.js builds so SSR works in production.
Locale, key, plural rule, and key-value message lookups read only own properties, avoiding inherited properties.
count and n are no longer written into the named values of a plural call.
te() looks up messages in the same way as t().
tm() looks up messages in the same way as t().
The core context is synced when inheritLocale is enabled.
Locale chains are cached by fallback identity.
Avoids throwing on AST keys in the devtools groupId.
The locale chain cache is invalidated when the fallback changes, so locale resolution uses the updated fallback.
Fallback handling uses map keys and skips the default.
Tree-shaking is preserved when using Vapor.
The part option is respected when the format key is omitted in number and datetime formatting.
The formatter now passes component children as slots.
Prevents register* functions from being tree-shaken in intlify/core.
Linked messages now resolve keys containing dots.
$n overloads use DefineNumberFormat instead of DefineDateTimeFormat.
Suppressing automatic locale fallback with ! no longer breaks n/$n and d/$d formatting.
The incorrect $d type was fixed.
Key paths are now resolved correctly.
Modifiers no longer skip missing translation keys.
Using n() with undefined no longer throws errors.
Using $n() with undefined no longer throws errors.
Fixed te returning false when the key contains a do.
The v-t directive now rerenders when the locale switches.
Avoids a bundler warning related to getCurrentInstance compatibility.
Avoids bundler static analysis for namespace imports.
Adds support for Vue3 vapor mode in the options API.
The tm function now accepts DefineLocaleMessage key types.
vue-i18n 1020 changes
Breaking changes 10
The allowComposition option was dropped.
The Legacy API formatter option codes were fully removed.
getChoiceIndex was fully removed from the Legacy API.
Compatibility with the v8.x translation component was dropped.
Modulo syntax was dropped.
The Legacy API preserveDirectiveContent option codes were fully removed.
Legacy API mode now uses the same overload signatures as Composition API mode.
The v8.x compatibility behavior of te was dropped.
The preserve modifier codes were fully removed from the directive.
The vue-i18n-bridge package was dropped.
Deprecations 2
The Legacy API function remains available for migration but displays a console warning; pluralization is supported by t.
The Legacy API function remains available for migration but displays a console warning; pluralization is supported by $t.
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.
Performance 1
Bundle size was further optimized.
Behavior and default changes 3
JIT compilation is enabled by default, addressing difficulties with CSP-restricted runtimes and dynamically fetched messages.
The minimal-feature alternative distribution moved from experimental status to general availability.
Legacy API mode now uses the same overload signatures as Composition API mode.
Fixes and other changes 3
Empty default messages are now allowed.
Devtools are no longer loaded on Node.js.
A fix addresses fallback linked message parameters.
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.
New APIs and options 4
A Vue I18n API optimized for Vue 3 Composition API is introduced.
A low-level i18n API is provided for developers who need an API beneath the Vue I18n APIs.
A compiler API compiles Vue I18n message syntax into executable JavaScript functions and supports syntax error reporting and source maps.
A mostly compatible API is provided to help existing Vue I18n applications migrate smoothly to Vue 3.
Tooling 4
An official CLI tool for i18n development is introduced.
An official Vite plugin for Vue I18n is introduced.
Locale messages can be pre-compiled using bundler middleware, avoiding runtime compilation cost and improving rendering performance.
The development build integrates with Vue DevTools, adding a component inspector extension, an i18n resources inspector, and a custom timeline.