
i18n features for your Nuxt project so you can easily add internationalization.
v8.0.0-rc.4 by
github-actions[bot]
🚀 Features
- Pickup from unplugin-vue-i18n plugin options to nuxt i18n options - by @kazupon in #2323 (fdf54)
- Support bundle size tunning with
dropMessageCompiler
option - by @kazupon in #2352 (417af) - Disable caching for dynamic locale messages - by @BobbieGoede in #2355 (3a621)
🐞 Bug Fixes
- Drop
vueI18n
option warning - by @kazupon in #2324 (d2223) - Redirect status code " - by @wxh06 in #1861 and #2337 (c276e)
- Regression for API extending - by @kazupon in #2340 (6c2a4)
- Loop redirection on 'ssr: false' and 'no_prefix' strategy - by @kazupon in #2341 (f8692)
- Normalise
sourcemap
option to boolean - by @danielroe in #2344 (cd9c3) - Lazy load locales - by @BobbieGoede in #2294 (3a522)
- I18n layer vue i18n resolution - by @BobbieGoede in #2347 (0ce01)
View changes on GitHub
v8.0.0-rc.3 by
github-actions[bot]
🚀 Features
- Project relative layer locale resolution - by @BobbieGoede in #2290 (e33f1)
- Allow to set the plugin as parallel - by @huang-julien and @kazupon in #2297 (93e89)
🐞 Bug Fixes
- Inline options i18n module locale resolution - by @BobbieGoede in #2296 (d0e11)
- Cannot redirect when call
setLocale
- by @kazupon in #2307 (5fc06) - Query parameters passing when localePath - by @kazupon in #2310 (67ff1)
- Loop redirection on differentDomains - by @kazupon in #2318 (81f5d)
- Local scope on legacy API mode - by @kazupon in #2319 (10ec6)
- Add 'i18n.bundle.compositionOnly' and 'i18n.types' checking - by @kazupon in #2320 (28aef)
View changes on GitHub
v8.0.0-rc.2 by
github-actions[bot]
🚀 Features
- Add is external logic from NuxtLink component - by @TitusKirch in #2273 (d8889)
🐞 Bug Fixes
- Not work to wait for page transition - by @kazupon in #2285 (03b02)
- Messages provided by layer vuei18n config files not merging - by @BobbieGoede in #2286 (f5443)
- module: Correct runtime nuxt hook module path - by @dargmuesli in #2282 (c1b00)
View changes on GitHub
v8.0.0-rc.1 by
github-actions[bot]
🚀 Features
- Add NuxtLinkLocale component - by @BobbieGoede in #2229 (9dfb0)
- Support JIT compilation opt-outing - by @kazupon in #2250 (0411b)
🐞 Bug Fixes
- Integrate vue-i18n jit compilation - by @kazupon in #2199 (d20c6)
- Upgrade bundle-utils and unplugin-vue-i18n for fully esm using - by @kazupon in #2214 (8b873)
- Missing hash query param in load virtual conf - by @userquin in #2212 (6a110)
- Lazy load i18n files " - by @kazupon in #2193 and #2219 (8d65a)
- Make the message compiler work on the server side - by @kazupon in #2223 (d05ca)
- Routing on prefix_and_default strategy - by @kazupon in #2235 (2e108)
- Deps resolving for alias - by @kazupon in #2239 (eb55b)
- Cannot navigate on toppage - by @kazupon in #2240 (53161)
prefix_and_default
strategy routing - by @kazupon in #2249 (c6fff)- Query parameters removed when using useLocalePath - by @kazupon in #2251 (f5e7a)
detectBrowserLanguage.redirectOn
option - by @kazupon in #2252 (a503e)- Does not redirect when the site is reload again - by @kazupon in #2263 (55f2d)
- Resolve i18n.config paths in nuxt layers with unplugin simplefication - by @kazupon in #2265 (cfc0c)
detectBrowserLanguage
option - by @kazupon in #2276 (26f78)
View changes on GitHub
v8.0.0-beta.13 by
github-actions[bot]
🚀 Features
- composables: Add options parameter - by @dargmuesli and @ineshbose in #2065 (b79c6)
🐞 Bug Fixes
- Put deprecation warning if hook in use - by @ineshbose in #2093 (a3146)
- Not work SPA (
ssr: false
) mode - by @kazupon in #2099 (3c5ed) - Avoid transform to
globalThis
with bundler - by @kazupon in #2120 (c8406) - Resolve the message in components which was rendered with slots - by @kazupon in #2130 (9f9fd)
- Tweak a bit docs - by @kazupon (18bba)
- Add defaultLocale property - by @kazupon in #2144 (5ed73)
- Corecctly transform the resources that including array messages, as array - by @kazupon in #2147 (88c96)
- Resolve i18n configuration for array module options - by @kazupon in #2148 (1b74b)
- Check if route is defined by i18n before redirect " - by @kazupon in #1902 and #2153 (9b541)
- Fix detect browser languages - by @kazupon in #2164 (7bc33)
- Order of locale merging when using lazy:false - by @mothership-nik-wolf (0beda)
- Revert playground configuration - by @BobbieGoede (b51cc)
- RegisterModule hook not working for js/ts format resources - by @BobbieGoede in #2188 (f80c3)
- Lazy load i18n files - by @userquin in #2193 (41c91)
- Lint warning - by @kazupon (20403)
- Integrate vue-i18n jit compilation - by @kazupon (493ea)
- Basic implementation - by @kazupon (ed975)
- Sourcemap warnings - by @kazupon (06e6d)
- Wrong tests - by @kazupon (96be8)
- alias: Do not use runtime version during nuxt prepare - by @yassilah in #2180 (7c206)
View changes on GitHub
v8.0.0-beta.12 by
github-actions[bot]
🐞 Bug Fixes
- Typo - by @kazupon (e0d61)
- Type error - by @kazupon (e3e44)
- Generated options property typo - by @BobbieGoede in #1997 (a8d3e)
- Not enable precompile options - by @kazupon in #2002 (b896e)
- Format is not defined - by @BobbieGoede in #2003 (c4e32)
- Resolve incomplete vue-i18n configuration and js/ts extensions resources - by @kazupon in #2025 (a069f)
- 403 load error and sync loading - by @kazupon in #2048 (d1499)
View changes on GitHub
v8.0.0-beta.11 by
github-actions[bot]
🚨 Breaking Changes
- Functions in the config to be used through hooks - by @ineshbose in #1919 (bd116)
- Prepare for deprecation of
i18n:extend-messages
hook - by @kazupon in #1969 (2c394) vueI18n
options from config path - by @kazupon and Inesh Bose in #1973 (f7925)
🚀 Features
- Set
baseUrl
viaruntimeConfig
- by @BobbieGoede in #1920 (caa69) - Support js and ts extension resource formats - by @kazupon, @pierresaid and @ineshbose in #1938 (c0b70)
- Support layer locales and pages - by @BobbieGoede in #1925 (f3667)
- Add basic module locale merging - by @BobbieGoede in #1955 (d898a)
- Genearte og:url - by @kazupon in #1986 (3783c)
🐞 Bug Fixes
- Typo in JSDocs - by @hoersamu in #1887 (8ff1a)
- AlwaysRedirect does not work with redirectOn 'all' and 'no prefix' - by @borghol and khaled.borghol in #1884 (afd9a)
- Check if route is defined by i18n before redirect - by @borghol and khaled.borghol in #1902 (18209)
- Detect langDir absolute path and refer to docs - by @BobbieGoede in #1921 (2960b)
- DefineI18nRoute not working outside setup sugar syntax pages - by @BobbieGoede in #1929 (da553)
- UseCookieLocale parameter defaults - by @BobbieGoede in #1932 (c59a9)
- Make the useCookieLocale
ref
import explicit - by @issenn in #1951 (47aea) - Locales not being included when srcDir has been changed - by @BobbieGoede in #1964 (7a0a5)
- Fix toggle locale warning - by @zenonux in #1980 (00810)
- docs: 4.API typo - by @yunyuyuan (8cb33)
View changes on GitHub
v8.0.0-beta.10 by
github-actions[bot]
🐞 Bug Fixes
- NavigateTo handling - by @kazupon in #1842 (c439a)
- E2e errors on nuxt v3.1 - by @kazupon in #1841 (2e41d)
- Update docs - by @kazupon in #1835 (69505)
- Revert pnpm workspace - by @kazupon (891e6)
- Cannot resolve langDir path for locales file path - by @kazupon in #1846 (1266c)
- Loop redirection - by @kazupon in #1854 (225e0)
- Redirection loop on trailling slash - by @kazupon in #1858 (9b0eb)
- Redirect status code - by @kazupon in #1861 (23fe2)
- Cannot use some APIs on local scope - by @kazupon in #1871 (c12f6)
- Navigation breaks - by @kazupon in #1873 (50866)
View changes on GitHub
v8.0.0-beta.9 by
github-actions[bot]
🐞 Bug Fixes
- Changelog - by @kazupon (e93cc)
- Merge resources correctly on multiple lazy loading - by @kazupon in #1809 (5bd81)
- Regression lazy loading for file option - by @kazupon in #1813 (041c1)
- Compare also decoded Url with a route - by @szwenni and Sven Kröger in #1816 (920a4)
- Correctly static site generation - by @kazupon in #1824 (f8657)
View changes on GitHub
v8.0.0-beta.8 by
github-actions[bot]
🚨 Breaking Changes
- Injection fields completion for nuxt app instance and page meta - by kazuya kawaguchi in #1711 (8e682)
🚀 Features
🐞 Bug Fixes
- Cannot work completion for Composer interface - by kazuya kawaguchi in #1707 (1876c)
- Not resolve deps on monorepo - by kazuya kawaguchi in #1712 (ef240)
- Ensure same symbol on vue-i18n - by kazuya kawaguchi in #1714 (395e4)
- Format - by kazuya kawaguchi (02ec6)
- Merge lazy loading resources to initial loading resources - by kazuya kawaguchi in #1723 (26f66)
- Not reoslve vue-i18n module - by kazuya kawaguchi in #1726 (226e2)
- Hydration miss match for prerender - by kazuya kawaguchi in #1733 (caaea)
- Resolve extending messages correctly - by kazuya kawaguchi in #1765 (46bd9)
- Resolve vue-i18n related modules on nuxt layers - by kazuya kawaguchi in #1768 (e93ce)
- Not work differentDomains - by kazuya kawaguchi in #1770 (cc6cc)
- Resolve ComponentCustomProperties type errors - by kazuya kawaguchi in #1791 (81e29)
View changes on GitHub
v8.0.0-beta.7 by
github-actions[bot]
🚀 Features
🐞 Bug Fixes
- Missing dependency modules such as
vue-i18n-routing
and@intlify/vue-*
- by @kazupon in #1692 (563d6) - Lazy loading for fallback locale - by @kazupon in #1694 (d43ee)
- Optimize tree-shaking for vue-i18n related modules - by @kazupon in #1699 (8d278)
View changes on GitHub
v8.0.0-beta.6 by
github-actions[bot]
🐞 Bug Fixes
- Cannot work locale changing, when we move with
<NuxtLink>
onno_prefix
- by @kazupon in nuxt-community/i18n-module#1686 (159c4)
View changes on GitHub
v8.0.0-beta.5 by
github-actions[bot]
🚨 Breaking Changes
- Custom routes optimized for Nuxt 3 file based routing - by @kazupon in nuxt-community/i18n-module#1673 (a7fc4)
🐞 Bug Fixes
- Use nuxt3 rc12 on nuxtjs/i18n package with resolution field - by @kazupon (52b36)
- Enable includeUprefixedFallback on nitro:init hook - by @kazupon in nuxt-community/i18n-module#1642 (f7f71)
- Upgrade vue-i18n-routing for peer deps issue - by @kazupon in nuxt-community/i18n-module#1646 (4ba61)
- Resolve deps modules - by @kazupon in nuxt-community/i18n-module#1653 (b832f)
- V8 docs with docus official release version - by @kazupon in nuxt-community/i18n-module#1657 (3a466)
- Cannot export some perperties and functions via useI18n as local scope - by @kazupon in nuxt-community/i18n-module#1663 (378e2)
- AlwaysRedirect in detectBrowserLanguage - by @kazupon in nuxt-community/i18n-module#1668 (b0659)
- API type completion - by @kazupon in nuxt-community/i18n-module#1682 (bdf0d)
- gen: Consider named functions - by @ineshbose in nuxt-community/i18n-module#1616 and nuxt-community/i18n-module#1617 (e928b)
View changes on GitHub
v8.0.0-beta.4 by
github-actions[bot]
🚀 Features
- Merge messages if any - by @yassilah in nuxt-community/i18n-module#1615
🐞 Bug Fixes
- Diffrent domain loop redirection - by @kazupon in nuxt-community/i18n-module#1606
- Locale resources not loaded on windows - by @kazupon in nuxt-community/i18n-module#1607
- Non i18n custom block transforming - by @kazupon in nuxt-community/i18n-module#1608
- Suppress warning on 'prefix' strategy - by @kazupon in nuxt-community/i18n-module#1612
- Support i18n composable functions callable on definePageMeta functions - by @kazupon in nuxt-community/i18n-module#1629
- Extract defineI18nRoute options fully - by @kazupon in nuxt-community/i18n-module#1636
- Locale resources esm loading with import assertions - by @kazupon in nuxt-community/i18n-module#1637
- Install failing with @vue/composition-api peer deps - by @kazupon in nuxt-community/i18n-module#1639
View changes on GitHub
v8.0.0-beta.3 by
github-actions[bot]
🚀 Features
- Vue-i18n option loading with function - by @kazupon in nuxt-community/i18n-module#1600
🐞 Bug Fixes
- Avoid route reactivity value missing - by @kazupon in nuxt-community/i18n-module#1586
- Prefix strategy routing - by @kazupon in nuxt-community/i18n-module#1592
- Cannot work i18n custom block on 'lazy: false' - by @kazupon in nuxt-community/i18n-module#1595
- Cannot work browser locale on no_prefix strategy - by @kazupon in nuxt-community/i18n-module#1597
- Default composition mode - by @kazupon in nuxt-community/i18n-module#1599
View changes on GitHub
v8.0.0-beta.2 by
github-actions[bot]
🐞 Bug Fixes
- Wrong locales file extension - by @luthfi-hh in nuxt-community/i18n-module#1578
- Resolve type definition missing - by @kazupon in nuxt-community/i18n-module#1583
- Peer dependencies conflict on pnpm - by @kazupon in nuxt-community/i18n-module#1584
View changes on GitHub
v8.0.0-beta.1 by
github-actions[bot]
🚀 Features
- Support nuxt v3 rc.11 - by @kazupon in nuxt-community/i18n-module#1551
- Support
rootRedirect
option - by @kazupon in nuxt-community/i18n-module#1560 - Support dynamic route params localization - by @kazupon in nuxt-community/i18n-module#1562
- Support page transition locale switching fully - by @kazupon in nuxt-community/i18n-module#1566
- Support per-component translations - by @kazupon in nuxt-community/i18n-module#1567
- Support nuxt3 rc.12 - by @kazupon in nuxt-community/i18n-module#1570
🐞 Bug Fixes
- Add
defineNuxtRouteMiddleware
wrapper - by @danielroe in nuxt-community/i18n-module#1558 - Cannot generate on differentDomains - by @kazupon in nuxt-community/i18n-module#1559
- Type errors - by @kazupon in nuxt-community/i18n-module#1571
- Disable node v19 - by @kazupon in nuxt-community/i18n-module#1573
- Wrong packaging - by @kazupon in nuxt-community/i18n-module#1574
- Wrong resolving and exports - by @kazupon in nuxt-community/i18n-module#1575
View changes on GitHub
v8.0.0-alpha.3 by
github-actions[bot]
🚀 Features
- Support differentDomains - by @kazupon in nuxt-community/i18n-module#1540
- Support
defaultDirection
option - by @kazupon in nuxt-community/i18n-module#1541 - Custome route path for component with
defineI18nRoute
- by @kazupon in nuxt-community/i18n-module#1544 - Support ignoring localized routes - by @kazupon in nuxt-community/i18n-module#1546
- Support extending messages hook - by @kazupon in nuxt-community/i18n-module#1550
View changes on GitHub
v8.0.0-alpha.2 by
github-actions[bot]
🚀 Features
- Support
identifierAttribute
option foruseLocaleHead
- by @kazupon in nuxt-community/i18n-module#1526 - Support
strategy
property API - by @kazupon in nuxt-community/i18n-module#1533 - Support detect browser language fully - by @kazupon in nuxt-community/i18n-module#1534
🐞 Bug Fixes
- Remove wrong release section - by @kazupon (6ae1c)
- Upgrade vue-i18n-routing v0.1 - by @kazupon (d1ee9)
- Improve error handling for vue-i18n v9 invalid message syntax - by @kazupon in nuxt-community/i18n-module#1522
- Avoid deprecated use of
params
on vue-router - by @kazupon in nuxt-community/i18n-module#1523 - Duplicate onLanguageSwitched calls - by @kazupon in nuxt-community/i18n-module#1528
- Custom nested route path for configuration - by @kazupon in nuxt-community/i18n-module#1531
- module: Transpile edge aswell - by @dargmuesli in nuxt-community/i18n-module#1516
View changes on GitHub
v8.0.0-alpha.1 by
kazupon
8.0.0-alpha.1 (2022-09-03)
This release is for Nuxt3.
This version is sitll alpha, the API might subject to breaking changes. We will make every effort to have the same I/F as v7.x, but Nuxt 3 is a major release, it might not be the same I/F.
About details, please check the v8 docs.
v8 alpha or later does not support Nuxt Bridge.
We will support Nuxt Bridge for v7.4 or v7.x later version. please see the Github Discussions for a detailed discussion of Nuxt Bridge supporting.
Thank you for your understanding 💚
v7.3.0 by
rchl
v7.2.1 by
rchl
v7.2.0 by
rchl
v7.1.0 by
rchl
v7.0.1 by
rchl
v7.0.0 by
rchl
This is a major version release that changes some defaults, deprecates some options and changes the name of the published package. Refer to the Migration Guide from v6 to v7 for detailed migration steps.
⚠ BREAKING CHANGES
- rename package to
@nuxtjs/i18n
- set
redirectOn
toroot
by default (#1244) - remove vuex
syncLocale
& vuexsyncMessages
(#1240) - disable
addDirAttribute
by default (#1239) - replace
onlyOnNoPrefix
andonlyOnRoot
withredirectOn
(#1210) - remove deprecated
seo
option (#1232) - remove deprecated
$nuxtI18nSeo
(#1207) - types: remove deprecated
NuxtVueI18n
(#1206) - remove deprecated
beforeLanguageSwitch
(#1200)
Code Refactoring
- disable
addDirAttribute
by default (#1239) (eac6130) - remove deprecated
$nuxtI18nSeo
(#1207) (d8134a3) - remove deprecated
beforeLanguageSwitch
(#1200) (d591662) - remove deprecated
seo
option (#1232) (bedf2b8) - remove vuex
syncLocale
& vuexsyncMessages
(#1240) (399f1a3) - rename package to
@nuxtjs/i18n
(b3ef21c) - replace
onlyOnNoPrefix
andonlyOnRoot
withredirectOn
(#1210) (2eb955a) - set
redirectOn
to root by default (#1244) (956df98) - types: remove deprecated
NuxtVueI18n
(#1206) (e96688c)
v6.28.0 by
rchl
v6.27.2 by
rchl
v6.27.1 by
rchl
v6.26.0 by
rchl
v6.25.0 by
rchl
v6.24.0 by
rchl
v6.23.0 by
rchl
v6.22.3 by
rchl
v6.22.0 by
rchl
v6.21.1 by
rchl
v6.21.0 by
rchl
v6.20.5 by
rchl
Bug Fixes
- don't apply any locale-logic to non-existent routes (#1093) (7180412), closes #1092
- recursive clone triggered when locales object made reactive (#1090) (83c4398), closes #1075
- support localePath with path input and customized routes (#1088) (4043968)
- docs: adjusted example code in documentation to call the right context (#1087) (7b8f77d)
v6.20.4 by
rchl
v6.20.2 by
rchl
v6.20.1 by
rchl
v6.19.0 by
rchl
v6.18.0 by
rchl
v6.17.0 by
rchl
v6.16.0 by
rchl
Features
Refactor
- replace clonedeep with klona (#981)
Bug Fixes
- detectBrowserLanguage: use ISO code if available (#965) (1e39a3b), closes #979 #499
- docs: add defaultLocale to examples (#955) (4b69c6c)
- docs: add missing parenthesis (#941) (4ecdee1)
- docs: clarify the type of the vueI18n option (c9be559)
- docs: fix some links in the documentation (1249226)
- docs: fix some more links in the documentation (abbf212)
- docs: include defaultLocale in the example configuration (#951) (6bacb3b)
- docs: remove unwanted characters (bc9f76e), closes #960
- generate: don't try to redirect route when static generating (#989) (d5957d0), closes #911
- test: fix test expectation for trailingSlash=true (c9f2ef5)
v6.15.4 by
rchl
v6.15.3 by
rchl
v6.15.2 by
rchl
v6.15.1 by
rchl
v6.15.0 by
rchl
Features
Bug Fixes
IMPORTANT
For improved SEO, it's highly recommended to set detectBrowserLanguage.onlyOnRoot
to true if you are using strategy other than no_prefix
with detectBrowserLanguage
enabled. This will ensure that crawlers won't get redirected when crawling pages other than the root page, which would then be considered duplicate content.
This will likely become a default behavior in the future.
v6.14.2 by
rchl
v6.14.0 by
rchl
v6.13.12 by
rchl
v6.13.11 by
rchl
v6.13.10 by
rchl
v6.13.9 by
rchl
v6.13.8 by
rchl
v6.13.7 by
rchl
v6.13.5 by
rchl
v6.13.4 by
rchl
v6.13.3 by
rchl
v6.13.2 by
rchl
v6.13.1 by
rchl
v6.13.0-beta.0 by
rchl
v6.12.2 by
rchl
v6.12.1 by
rchl
Bug Fixes
- crash on using nuxt-i18n properties in a component with i18n options (#736) (fd8b684), closes #557
- don't add trailing slashes to generated routes (#733) (b062044), closes #717
- favor non-prefixed route with prefix_and_default strategy (#732) (09d2c0f), closes #721
- remove encodePaths option and don't encode paths by default (#731) (aba92b3), closes #712
v6.12.1-beta.0 by
rchl
v6.12.0 by
rchl
v6.11.1 by
rchl
v6.11.0 by
rchl
v6.10.2-beta.0 by
rchl
v6.10.0 by
rchl
v6.9.3 by
rchl
v6.9.2 by
rchl
v6.9.1 by
rchl
v6.9.0 by
rchl
6.9.0 (2020-04-14)
Improvement
v6.8.1 by
rchl
v6.8.0 by
rchl
v6.7.2 by
rchl
v6.7.1 by
rchl
v6.7.0 by
rchl
v6.6.1 by
rchl
6.6.1 (2020-03-16)
Bug Fixes
- types: add vueI18nLoader to AllOptionsInterface (#634) (f1dd816)
- add tests for forwardedHost change, deprecate setting instead of removing (3f4d135)
- Incomplete initialization with 'en-US' locale code and no default (#629) (eeb63bb), closes #628
- remove forwardedHost option - make domain matching consistent on server/client (#630) (2a17c99)