Vue i18n v11.4.17
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
- fix: make install synchronous like other Vue plugins, so that app.use() throws its errors by @kazupon in https://github.com/intlify/vue-i18n/pull/2741
- fix: make a regular expression in silentTranslationWarn and silentFallbackWarn suppress the warnings for the keys that match it by @kazupon in https://github.com/intlify/vue-i18n/pull/2744
🔒 Security Fixes
- fix(shared): neutralize xlink:href, base and SVG animations in sanitizeTranslatedHtml by @kazupon in https://github.com/intlify/vue-i18n/pull/2756
📝️ Documentations
- docs: describe what missingWarn and fallbackWarn turn off, and how to warn only when no locale has the key by @kazupon in https://github.com/intlify/vue-i18n/pull/2745
Full Changelog: https://github.com/intlify/vue-i18n/compare/v11.4.16...v11.4.17
