Releases: nuxt-modules/i18n
v10.0.0-beta.1
🚨 Breaking Changes
- Raise node engines to
>=20.11.1- by @BobbieGoede (debbe) - Drop
bundle.optimizeTranslationDirective- by @BobbieGoede in #3515 (35c36) - Drop deprecated functions and composables - by @BobbieGoede in #3514 (08975)
- Drop
experimental.generatedLocaleFilePathFormat- by @BobbieGoede in #3516 (63927) - Remove
restructureDirmigration path - by @BobbieGoede in #3518 (d89eb) - Promote
experimental.hmroptions tohmr- by @BobbieGoede in #3456 (c46bd) - Enable
switchLocalePathLinkSSR- by @BobbieGoede in #3521 (4a3e0) - Esm only - by @BobbieGoede in #3517 (05ed3)
- Upgrade to
vue-i18nv11 - by @BobbieGoede in #3522 (edd83) - Promote
autoImportTranslationFunctions- by @BobbieGoede in #3523 (10dd7) - Promote
experimental.alternateLinkCanonicalQueries- by @BobbieGoede in #3524 (c531a)
🐞 Bug Fixes
- Prevent locale
stringtoLocaleObjectnormalization in generated options - by @BobbieGoede (09cc1) - Prevent locale
stringtoLocaleObjectnormalization in generated options - by @BobbieGoede (a729b) - Setup auto-imports outside
modules:donehook - by @BobbieGoede (a7875) - Setup auto-imports outside
modules:donehook - by @BobbieGoede in #3520 (f706a) legacyandcompositiontype narrowing forvue-i18n- by @BobbieGoede in #3526 (ddd07)
View changes on GitHub
v9.5.2
🐞 Bug Fixes
- Setup auto-imports outside
modules:donehook - by @BobbieGoede in #3520 (f706a)
View changes on GitHub
v9.5.1
🐞 Bug Fixes
- Prevent locale
stringtoLocaleObjectnormalization in generated options - by @BobbieGoede (09cc1)
View changes on GitHub
v9.5.0
🧹 Strip i18n file paths from build
We have added the 'off' option to experimental.generatedLocaleFilePathFormat, which removes i18n file paths (e.g. locale files, vue-i18n configs) from the build. Note that enabling this will also mean these paths are no longer accessible in properties such as locales and localeProperties. See the options documentation for more details on this feature.
Since we no longer need these paths at runtime this will be the default behavior in v10 (and the option to configure this will be removed entirely).
🚀 Features
- Support
'off'option forexperimental.generatedLocaleFilePathFormat- by @BobbieGoede in #3508 (e8e8d) - Add llms.txt routes - by @HugoRCD in #3510 (62627)
🐞 Bug Fixes
- Handle access to undefined esbuild property - by @hansemannn in #3472 (a2b5e)
useCookieLocalenot being set server-side - by @BobbieGoede in #3491 (86a90)- Replace deprecated
tryResolveModulewithresolveModule- by @BobbieGoede in #3494 (f6f2a) differentDomainswithno_prefixmissing alternate links - by @ap-arto in #3493 (7e16a)- Delay module setup until
modules:done- by @BobbieGoede in #3501 (60dec)
View changes on GitHub
v9.4.0
🚀 Features
- Accept route name as argument
getRouteBaseName- by @BobbieGoede in #3446 (3ca5e)
🐞 Bug Fixes
- Resolve
yarnissues by movingtypescripttodependencies- 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: falsein SSG plugin - by @ap-arto in #3410 (5f56b)
View changes on GitHub
v9.3.2
🐞 Bug Fixes
- Update
@intlify/unplugin-vue-i18nto^6.0.5- by @BobbieGoede in #3420 (10443)
View changes on GitHub
v9.3.1
🐞 Bug Fixes
- Remove unused
std-envdependency - 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-parserinstead 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.enabledproperty in nuxt - by @danielroe in #3380 (bafd6) - Handle new granular debug option - by @danielroe in #3381 (4a8d7)
- Use serialized value of
nuxt.options.pagesfor compatibility - by @BobbieGoede in #3387 (710d4) - Use
@oxc-parser/wasmin stackblitz env - by @BobbieGoede in #3388 (4c684) - Use
@oxc-parser/wasmas parser fallback - by @BobbieGoede in #3391 (e9b76) webpackandrspackvirtual file resolution - by @BobbieGoede in #3385 (af965)