Vue i18n v11.4.17

intlify/vue-i18n
Share
Summary
In version 11.4.17 of Vue i18n, the `install` method is now synchronous, ensuring that errors are thrown during installation, preventing half-installed states. Additionally, improvements to the legacy API allow for better suppression of translation warnings using regular expressions, and security enhancements have been made to sanitize SVG elements and URLs in translations.

Full release notes

install is synchronous: app.use(i18n) now throws the errors in install. They were unhandled rejections, which left the app half-installed (and ended Node.js processes without a handler for them), so if app.use(i18n) throws after you update, the install was failing before, too. i18n.install() returns undefined instead of a Promise that never settled in development without the devtools. (#2741)

Legacy API: A regular expression in silentTranslationWarn or silentFallbackWarn now suppresses the warnings for the keys that match it. As an option of createI18n, it suppressed all the warnings, and set to the property, it suppressed the warnings for the keys that did not match it. (#2744)

escapeParameter: The sanitizer now also disables javascript: URLs in xlink:href, and turns <base>, <animate> and <set> in translations into text. SVG animations with <animate> or <set> in HTML messages no longer run while escapeParameter (escapeParameterHtml in the Legacy API) is enabled. (#2756) See GHSA-473g-cvf6-mfxj.

What's Changed

🐛 Bug Fixes

🔒 Security Fixes

📝️ Documentations

Full Changelog: https://github.com/intlify/vue-i18n/compare/v11.4.16...v11.4.17

Latest Vue i18n releases

All releases