Releases: nuxt-modules/i18n
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)
View changes on GitHub
v9.1.3
🐞 Bug Fixes
- Locale switching middleware in static build - by @BobbieGoede in #3323 (21fcf)
- Check if resolved localized route name exists - by @BobbieGoede in #3325 (8b42e)
- Consistent composer instance properties across scopes - by @BobbieGoede in #3324 (ab6e5)
View changes on GitHub
v9.1.2
🐞 Bug Fixes
- Hook timing and separate i18n plugin - by @BobbieGoede in #3266 (fbdc3)
- Improve options template types - by @BobbieGoede in #3279 (12621)
- Refactor and improve localized route resolution - by @BobbieGoede in #3283 (df494)
- Custom paths
pages
config should use route name as key - by @BobbieGoede in #3286 (3ba77)
View changes on GitHub
v9.1.1
🚀 Features
- Configurable
bundle.optimizeTranslationDirective
- by @BobbieGoede in #3256 (1b457)
🐞 Bug Fixes
- Default language multi domain locales - by @DotwoodMedia and Vincent de Vreede in #3250 (7f7ea)
View changes on GitHub
v9.1.0
This release contains bug fixes and a new experimental option, you may need to refresh your lockfiles while updating.
⚙️ Configurable generated file and directory paths
In v9 (and lower) the i18n file and directory paths are absolute by default which could expose sensitive path information about your build environment in production.
To combat this we have added a new experimental option, experimental.generatedLocaleFilePathFormat
, which is used to configure the way these paths are processed. We will explore more approaches to improve this functionality in the future.
Check out the documentation on its usage here.
🚀 Features
- Configurable generated file and directory paths - by @BobbieGoede in #3235 (abc3d)
🐞 Bug Fixes
- Sync route parsing utilities - by @BobbieGoede in #3211 (5363e)
- Support special characters in generated messages type keys - by @BobbieGoede in #3223 (543e4)
- Messages type generation not watching locale files - by @BobbieGoede in #3224 (c0532)
- types: