Releases: nuxt-modules/i18n
v9.4.0
🚀 Features
- Accept route name as argument
getRouteBaseName
- by @BobbieGoede in #3446 (3ca5e)
🐞 Bug Fixes
- Resolve
yarn
issues by movingtypescript
todependencies
- by @BobbieGoede in #3447 (2cd02)
View changes on GitHub
v9.3.4
🐞 Bug Fixes
- Transform ts locale files with
esbuild
- by @BobbieGoede in #3428 (b9e00) - Only optimize configured locale files - by @BobbieGoede in #3433 (03554)
- Warning to recommend disabling
bundle.optimizeTranslationDirective
- by @BobbieGoede in #3436 (3f55a)
View changes on GitHub
v9.3.3
🐞 Bug Fixes
- Ensure unique imports in generated options - by @BobbieGoede in #3423 (91ead)
- Respect
detectBrowserLanguage: false
in SSG plugin - by @ap-arto in #3410 (5f56b)
View changes on GitHub
v9.3.2
🐞 Bug Fixes
- Update
@intlify/unplugin-vue-i18n
to^6.0.5
- by @BobbieGoede in #3420 (10443)
View changes on GitHub
v9.3.1
🐞 Bug Fixes
- Remove unused
std-env
dependency - by @BobbieGoede in #3397 (7bc69) - Improve vue-i18n configuration not found warning - by @BobbieGoede in #3398 (7760c)
View changes on GitHub
v9.3.0
👀 Highlights
⚡ Locale Messages HMR (vite only)
We have added Hot Module Replacement (HMR) support for locale messages and vue-i18n configurations*, editing translations in locale files should now update instantly while preserving the page state.
This feature is enabled in development environments by default but can be disabled in case you run into issues by setting experimental.hmr: false
.
*HMR in vue-i18n is supported for the messages, numberFormats and datetimeFormats properties in vue-i18n configuration files, other changes will fall back to page reload.
🔧 Webpack & Rspack
This release resolves issues with Webpack and Rspack related to virtual files, please let us know if you run into issues with this release 🙏
🩹 Unhead v2 + Nuxt 3.16
Make sure to update to this release for compatibility with Nuxt 3.16.
📃 Changes
🚀 Features
- Locale messages HMR - by @BobbieGoede in #3363 (84467)
- Hash file imports - by @BobbieGoede in #3376 (45037)
- Use
oxc-parser
instead ofsucrase
+@babel/parser
- by @BobbieGoede in #3382 (77455)
🐞 Bug Fixes
- Generate types from server plugin - by @BobbieGoede in #3366 (96582)
- Unhead v2 compatibility - by @harlan-zw in #3379 (8d02b)
- Handle new
pages.enabled
property in nuxt - by @danielroe in #3380 (bafd6) - Handle new granular debug option - by @danielroe in #3381 (4a8d7)
- Use serialized value of
nuxt.options.pages
for compatibility - by @BobbieGoede in #3387 (710d4) - Use
@oxc-parser/wasm
in stackblitz env - by @BobbieGoede in #3388 (4c684) - Use
@oxc-parser/wasm
as parser fallback - by @BobbieGoede in #3391 (e9b76) webpack
andrspack
virtual file resolution - by @BobbieGoede in #3385 (af965)
View changes on GitHub
v9.2.1
🐞 Bug Fixes
- Pass app context to message loading logic - by @BobbieGoede in #3360 (13069)
- Use debug logger for
loadLocale
warning - by @BobbieGoede in #3361 (850dc)
View changes on GitHub
v9.2.0
⚙️ Opt-in alternate link consistency
You can now opt into a new experimental option experimental.alternateLinkCanonicalQueries
, this will remove non canonical query parameters from the alternate links returned by useLocaleHead
. Based on the discussions in #3296, check out the option documentation here.
🚀 Features
- Opt-in alternate link consistency - by @divine and @BobbieGoede in #3320 (16d8e)
🐞 Bug Fixes
availableLocales
not including configured locales - by @BobbieGoede in #3347 (1647b)- Load fallback messages on first access - by @BobbieGoede in #3352 (c79ff)
View changes on GitHub
v9.1.5
🐞 Bug Fixes
- I18n locale and config macro undefined on server-side - by @BobbieGoede in #3337 (88a29)
View changes on GitHub
v9.1.4
🐞 Bug Fixes
- Regression detect and set locale using initial route server-side - by @BobbieGoede in #3334 (d5796)