This changelog is generated by GitHub Releases
- Remove deprecated beforeLanguageSwitch - by @divine in nuxt-modules#1200 (d5916)
- Remove deprecated $nuxtI18nSeo - by @divine in nuxt-modules#1207 (d8134)
- Remove deprecated seo option - by @divine in nuxt-modules#1232 (bedf2)
- Replace onlyOnNoPrefix and onlyOnRoot with redirectOn - by @divine in nuxt-modules#1210 (2eb95)
- Disable addDirAttribute by default - by @divine in nuxt-modules#1239 (eac61)
- Remove vuex syncLocale & vuex syncMessages - by @divine in nuxt-modules#1240 (399f1)
- Set redirectOn to root by default - by @divine in nuxt-modules#1244 (956df)
- Rename package to @nuxtjs/i18n - by @rchl (b3ef2)
- Drop i18n routing API injecting to vue app instance - by @kazupon (5b963)
- Drop i18n routing API injecting to vue app instance" - by @kazupon (d867b)
- Custom routes optimized for Nuxt 3 file based routing - by @kazupon in nuxt-modules#1673 (a7fc4)
- Injection fields completion for nuxt app instance and page meta - by @kazupon in nuxt-modules#1711 (8e682)
- types: Remove deprecated NuxtVueI18n - by @divine in nuxt-modules#1206 (e9668)
- Add ignoreRoutes option - by @paulgv (56ec3)
- Add noPrefixDefaultLocale option - by @paulgv (dac14)
- Add redirectRootToLocale option - by @paulgv (65cac)
- Generate pages SEO metadata - by @paulgv (dfb84)
- Async messages loader - by @paulgv (a5396)
- Add support for Regexp for ignorePaths option - by @paulgv (65f8b)
- Browser language detection - by @paulgv (755fa)
- Add useRedirectCookie option - by @paulgv (6d6aa)
- Add beforeLanguageSwitch & onLanguageSwitched callbacks - by @paulgv (21b5f)
- Allow usage of redirectRootToLocale option even with noPrefixDefaultLocale disabled - by @paulgv (69940)
- Different domain names - by @paulgv (05540)
- Add option vuex to configure a store module along with i18n features - by @paulgv (c3eb0)
- Add og:locale support & fix i18n.seo component option - by @paulgv (8c158)
- Add parsePages & pages options - by @paulgv (b2980)
- Add support for X-Forwarded-Host - by @darcoder in nuxt-modules#92 (514ad)
- Add option to automatically add vue-i18n-loader to Webpack config - by @paulgv (d997b)
- Support vue-loader >=15.0.0 - by @ivanzhaowy in nuxt-modules#125 (3d5b9)
- I18n.locale property changes when route changed - by @Yama-Tomo (2f2f2)
- Add TypeScript types - by Kevin Marrec in nuxt-modules#133 (817c5)
- Rework browser detection and save lang to cookie - by @Magnum5234 in nuxt-modules#148 (d1bbc)
- Expose head SEO function to use in layout - by @adrienbaron in nuxt-modules#154 (ce373)
- Allow i18n component to load json - by @robyedlin in nuxt-modules#174 (21d43)
- Make t() method available server-side through app.$t() - by @iliyaZelenko in nuxt-modules#168 (90bcd)
- Add canonical link to PREFIX_AND_DEFAULT duplicated pages - by @Nabellaleen in nuxt-modules#194 (dcd1f)
- Upgrade vue-i18n (v8.2.1 -> v8.7.0) - by @paulgv (feac9)
- Add encodeURI option to allow skipping encodeURI for custom paths - by @michaelwnyc in nuxt-modules#199 (00c89)
- Pass nuxt context to loadLanguageAsync - by @derz (38348)
- Upgrade vue-i18n to v8.11.1 - by @paulgv (29f7f)
- Add global options - by @gaelreyrol (fe6d1)
- Always redirect to language that was saved in cookie - by @paulgv in nuxt-modules#283 (dc668)
- Load fallback locale when needed if lazy-loading is enabled - by @paulgv in nuxt-modules#291 (01485)
- Dynamic route parameters translation - by @paulgv in nuxt-modules#345 (2d1d7)
- Use default locale's custom path if not defined for a locale - by @jeanphilippeds in nuxt-modules#354 (d30e5)
- Add NO_PREFIX strategy + setLocale function - by @richie3366, Thomas Reichling and @rchl in nuxt-modules#409 (99801)
- Support 'path' parameter in localePath(...) - by @jengel3 (bbaa2)
- Inject $i18n into Vuex Store as
this.$i18n
- by @rchl (bb31c) - Support paths in localePath() - by @sugoidesune in nuxt-modules#554 (29a28)
- Added cookieDomain option to override locale cookie's domain - by @tho-masn in nuxt-modules#599 (7525c)
- Support external configuration file for vue-i18n options - by @rchl in nuxt-modules#605 (c55bc)
- Allow customization of rootRedirect status code - by @gaelreyrol in nuxt-modules#639 (38d89)
- Re-use the store locale on the client if set on server - by @matthieusieben in nuxt-modules#593 (c8b05)
- Allow providing function for baseUrl option - by @rchl in nuxt-modules#679 (056a8)
- Add support for using localePath with no route name and path - by @rchl in nuxt-modules#727 (7a011)
- Add localeRoute API for getting the localized route - by @rchl in nuxt-modules#729 (0c4bd)
- Pass to-be-loaded locale when lazy-loading from exported function - by @rchl in nuxt-modules#752 (145f3)
- Add setting to use cross-origin cookie for "detectBrowserLocale" - by @lucianholt97 in nuxt-modules#853 (e4466)
- Add "cookieSecure" setting to set the Secure flag on the cookie - by @rchl in nuxt-modules#869 (0f2d7)
- Add option to only detect browser locale on root path - by @rchl in nuxt-modules#799 (7bdb2)
- "onlyOnNoPrefix" - detect browser locale when no prefix - by @dword-design and @rchl in nuxt-modules#896 (15f0a)
- Expose localeProperties property - by @iifawzi and @rchl in nuxt-modules#1016 (a9457)
- Expose API for detecting browser locale - by @ThibaultNocchi in nuxt-modules#1022 (ac756)
- Add dir property and defaultDirection option - by @iifawzi and @rchl in nuxt-modules#1023 (3b3dc)
- API for handling locale change during page transitions - by @pmrotule and @rchl in nuxt-modules#963 (23b9c)
- Add i18n APIs to Nuxt Context - by @rchl in nuxt-modules#1120 (394ec)
- Support loading messages from file without lazy-loading - by @rchl in nuxt-modules#1130 (03618)
- Add localeLocation API - by @rchl in nuxt-modules#1142 (c587d)
- Add onBeforeLanguageSwitch API - by @rchl in nuxt-modules#1164 (5f5d7)
- Allow disabling route sorting - by @divine and @rchl in nuxt-modules#1241 (8a6a0)
- Add support for query params in canonical url - by @rwwagner90 and @rchl in nuxt-modules#1274 (d5dea)
- Expose hook for extending messages - by @existe-deja, existe_deja and @rchl in nuxt-modules#1319 (696bd)
- Support getBrowserLocale for bridge - by @kazupon (7371f)
- Support getBrowserLocale API - by @kazupon (d0fb6)
- Add useBrowserLocale commposition API - by @kazupon (7b319)
- Add setting for setting expiration of the cookie that stores locale - by @rchl in nuxt-modules#1492 (dd764)
- Support nuxt runtime context helper - by @kazupon (4d62f)
- Support
indetifierAttribue
option foruseLocaleHead
- by @kazupon in nuxt-modules#1526 (d4296) - Support
strategy
property API - by @kazupon in nuxt-modules#1533 (ee9bc) - Support detect browser language fully - by @kazupon in nuxt-modules#1534 (b660d)
- Support differentDomains - by @kazupon in nuxt-modules#1540 (62133)
- Support
defaultDirection
option - by @kazupon in nuxt-modules#1541 (658df) - Custome route path for component with
defineI18nRoute
- by @kazupon in nuxt-modules#1544 (3a73d) - Support ignoring localized routes - by @kazupon in nuxt-modules#1546 (379db)
- Support extending messages hook - by @kazupon in nuxt-modules#1550 (96512)
- Support nuxt v3 rc.11 - by @kazupon in nuxt-modules#1551 (a97f3)
- Support
rootRedirect
option - by @kazupon in nuxt-modules#1560 (cf306) - Support dynamic route params localization - by @kazupon in nuxt-modules#1562 (5f3b0)
- Support page transition locale switching fully - by @kazupon in nuxt-modules#1566 (0bc5d)
- Support per-component translations - by @kazupon in nuxt-modules#1567 (cb2ee)
- Support nuxt3 rc.12 - by @kazupon in nuxt-modules#1570 (afb33)
- Vue-i18n option loading with function - by @kazupon in nuxt-modules#1600 (4173b)
- Merge messages if any - by @yassilah in nuxt-modules#1615 (30183)
- Extend lazy loading - by @kazupon in nuxt-modules#1801 (045d7)
- browser language detection:
- Add support for mode SPA - by @paulgv (12bbe)
- docs:
- Enable indexed search results in documentation - by Sylvain Pace in nuxt-modules#687 (bea56)
- Migrate docs to Nuxt Content - by @debs-obrien and @rchl in nuxt-modules#864 (affb8)
- Upgrade to latest Docus - by @Tahul in nuxt-modules#1702 (dfceb)
- fallbackLocale:
- Support vue-i18n decision map fallback - by @DktRemiDoolaeghe in nuxt-modules#992 (b4c6c)
- lazy:
- Option for not injecting messages to Nuxt state - by @rchl in nuxt-modules#1153 (2231f)
- loadLanguageAsync:
- Support promises return in lang files. - by @ezypeeze (9b220)
- parser:
- Parse typescript 3.7 shipped proposals - by @cilice (a69a8)
- refactor:
- Refactor module's code BREAKING CHANGE: Route generation utils have been renamed & the module doesn't register a vuex module anymore - by @paulgv (e4186)
- seo:
- Additional catchall hreflang tags - by @manniL in nuxt-modules#597 (ebd22)
- strategy:
- Add PREFIX_AND_DEFAULT strategy - by @odanado (a7ea4)
- types:
- Add NuxtI18nInstance type for use with custom accessors - by @rchl in nuxt-modules#1147 (aa4f4)
- vuex:
- Expose nuxt-i18n API on store - by @rchl in nuxt-modules#1098 (3ea3d)
- Remove pages/ prefix for routes aliases options - by @paulgv (c26cf)
- Fix for URLs with hashes - by @paulgv in nuxt-modules#13 (2e064)
- Cleaner URLs for index - by @paulgv (72938)
- Use same Regex for matching URL locale in plugin and middleware - by @paulgv (a590e)
- Prevent adding hreflang data to non-localized pages - by @paulgv (7ba09)
- Set langDir default value to 'lang/' to prevent webpack dynamic import issue - by @paulgv (7ce1f)
- Require loadLanguageAsync only when needed - by @paulgv (2b8cd)
- Remove base from resolved URL - by @paulgv (f863f)
- Fix issue where locale messages would not be preserved after lazy-loading - by @paulgv (c39b3)
- Check req.headers.cookie before parsing - by @paulgv (0e3da)
- Avoid server error without accept-language header - by @manniL in nuxt-modules#46 (a194d)
- Prevent language from switching back to default when navigating to ignored route - by @paulgv (fb488)
- Make detectBrowserLanguage redirection work with noPrefixDefaultLocale disabled - by @paulgv (90d9e)
- Fallback to using route's name if chunkName empty - by @paulgv (09692)
- Fix redirection based on browser language - by @paulgv (64ff3)
- Support for deprecated vendor in nuxt-edge build - by @unr in nuxt-modules#71 (f841e)
- Ensure store exists before attempting to register module or dispatching actions - by @paulgv (79a5c)
- Check this.i18n before this.i18n.seo - by @paulgv (0618f)
- Fix lazy-loading module handling issue - by @paulgv (e1f03)
- Fix browser language redirection - by @paulgv (074e7)
- Lock esm to 3.0.28 to prevent error at build time - by @paulgv (e9098)
- Fix an issue where the module would attempt to generate og:locale tags without required ISO code - by @paulgv (5dd97)
- Fix 'logger is not defined' error - by @paulgv (b79b5)
- Fix routes generation with nuxt generate - by @achretien in nuxt-modules#95 (ff127)
- Rename in-component options key from i18n to nuxtI18n - by @paulgv (5ff61)
- No name on parent routes - by @elrolito in nuxt-modules#101 (fd51e)
- Support locales with names that match other locales (
en
anden-us
) - by Tuqire Hussain (eeda1) - Making hreflang href full-qualified - by @aideremir (5dd42)
- Prevent error when using
extendRoutes
- by @paulgv (1509a) - Fix
TypeError: Cannot read property 'pages' of undefined
inextendRoutes
- by @paulgv (10ba9) - Include Types in NPM bundle (when published) - by Kevin Marrec (fc67f)
- Revert "feat: i18n.locale property changes when route changed" - by @paulgv (9e04b)
- Fix acorn-walk dependency - by @lucpotage in nuxt-modules#138 (19c9f)
- Encode custom paths - by @hinex in nuxt-modules#145 (98c99)
- State not defined - by @michaelwnyc in nuxt-modules#178 (142dc)
- Preserve queryString when redirecting to rootRedirect - by @SnirShechter in nuxt-modules#169 (1ddca)
- Wait for lazy loading promises - by @Alex--C in nuxt-modules#163 (8b426)
- Set i18n_redirect cookie path to '/' - by @Effe-Ickx in nuxt-modules#143 (9ad54)
- Update types - by @iliyaZelenko in nuxt-modules#167 (225e7)
- Create correct baseroute for switchlocalepath - by @dipsaus9 in nuxt-modules#193 (90906)
- Preserve route params in base route - by @paulgv (13b2e)
- Fix broken condition in middleware & prevent cookie from being set twice - by @Magnum5234 in nuxt-modules#164 (7c839)
- Rename option encodeURI to encodePaths - by @paulgv (776c2)
- Update types - by @iliyaZelenko in nuxt-modules#212 (5f8f4)
- Set new locale into vuex store module when switching languages - by @xibman in nuxt-modules#222 (77cc3)
- Remove extraneous name from og:locale - by Jan Bílek in nuxt-modules#225 (9460d)
- Prevent duplicated route names issue with prefix_and_default strategy - by @paulgv (31885)
- Prevent error "Cannot read property 'iso' of undefined" on 404 pages - by @rchl in nuxt-modules#233 (6cb2f)
- Prevent redirect failure when accessing a dynamic route with detectBrowserLanguage enabled - by @rchl in nuxt-modules#266 (b7adb)
- Fix duplicate child routes with PREFIX_AND_DEFAULT strategy - by @rchl in nuxt-modules#292 and nuxt-modules#294 (76d59)
- Fix exception when using multiple domains option - by @rchl in nuxt-modules#293 and nuxt-modules#295 (17f1e)
- Add missing vue-template-compiler dependency - by @rchl in nuxt-modules#297 and nuxt-modules#298 (196b4)
- Remove explicit dependency on vue-template-compiler - by @rchl in nuxt-modules#297 (57638)
- Remove explicit dependency on vue-template-compiler - by @paulgv in nuxt-modules#297 and nuxt-modules#305 (2eff1)
- Add types for nuxtI18nSeo - by @aldarund (5811b)
- Unexpected token when using dynamic imports - by @StephanGerbeth in nuxt-modules#320 (7dd1d)
- Better server side protocol detection - by @rchl in nuxt-modules#123 (8cb3e)
- Do not discard already present set-cookie header - by @paulgv in nuxt-modules#327 (ec08b)
- Revert using cookies package to fix cookie headers handling - by @paulgv in nuxt-modules#332 (9cd03)
- Only require is-https dependency on the server - by @rchl in nuxt-modules#329 (8a728)
- Move SEO types out of Vue module declaration - by @paulgv (be085)
- Move SEO types out of Vue module declaration - by @paulgv in nuxt-modules#335 (0cc0b)
- Update link to SEO metadata generation logic - by @noureddinenoureddine in nuxt-modules#352 (10a5f)
- Disable seo by default - by @rchl (741ae)
- Warning in nuxt 2.9.x / vue-meta 2.x - by @rchl (36056)
- Locale not set with differentDomains enabled - by @rchl (63469)
- Fix loading fallback locale with lazy loading - by @rchl (d8db5)
- Redirects to wrong route after SPA navigation - by @rchl (8bf61)
- Multiple redirects on switching to another locale - by @rchl (14cee)
- Issue with locale not being updated when cookie not stored - by @rchl (999ac)
- Removed
app.$t
API as it never worked - by @rchl (ca198) - Make
parsePages
compatible with typescript decorators - by @rchl (5a3db) - Failure to change locale on initial try with nuxt generate - by @rchl (9b4b6)
- Don't try to process routes with no component - by @madmod (a53e3)
- Crash on no_prefix + invalid/tempered locale cookie - by @rchl (4b56d)
- All routes removed when locales are absent - by @rchl (1c5e4)
- NO_PREFIX - localePath with
path
returns route with prefix - by @rchl (4d418) - Don't inject to store if store is not defined - by @rchl (e5476)
- Route name missing for routes that have children - by @rchl (bd236)
- Locale prefixes missing for child routes with custom paths - by @rchl (10c1d)
- Make switchLocalePath work from Nuxt plugin or middleware - by @rchl (8a1c0)
- Set sameSite=Lax option for detected-language cookie - by @rchl (8d849)
- Direct navigation to URL in SPA with vue-router in hash mode - by @rchl (0a9c4)
- Default locale catch-all route overrides locale-specific one - by @rchl (196bf)
- Sync store locale before triggering onLanguageSwitched listener - by @rchl in nuxt-modules#609 (9b699)
- Incomplete initialization with 'en-US' locale code and no default - by @rchl in nuxt-modules#629 (eeb63)
- Remove forwardedHost option - make domain matching consistent on server/client - by @maxm86545 in nuxt-modules#630 (2a17c)
- Add tests for forwardedHost change, deprecate setting instead of removing - by @rchl (3f4d1)
- Don't try to use route params when vuex.syncRouteParams - by @rchl (1bdf3)
- Locale not updated on navigation (no fallbackLocale) - by @rchl in nuxt-modules#647 (1ad3e)
- Match full browser locale case-insensitively (same as short) - by @rchl and mcdmaster in nuxt-modules#655 (e614e)
- Crash with invalid locale cookie + no_prefix strategy + SEO - by @rchl in nuxt-modules#666 (2ec72)
- Lock vue-i18n version to 8.16.0 until crashing issue is fixed - by @rchl in nuxt-modules#673 (9e99f)
- Crash with latest vue-i18n related to using null locale - by @rchl in nuxt-modules#678 (642fd)
- Redirect from 404 to defaultLocale if there is matching route - by @rchl (e9997)
- NavigationDuplicated error on loading 404 page in SPA - by @rchl in nuxt-modules#705 (6bd80)
- Don't do browser language detection during Nuxt generate - by @rchl in nuxt-modules#718 (f1c5a)
- Trigger language detection on initial load in generated mode - by @rchl in nuxt-modules#724 (a853d)
- Don't leave out non-prefixed routes for generate + prefix strategy - by @rchl in nuxt-modules#726 (97fab)
- Remove "encodePaths" option and don't encode paths by default - by @rchl in nuxt-modules#731 (aba92)
- Favor non-prefixed route with prefix_and_default strategy - by @rchl in nuxt-modules#732 (09d2c)
- Don't add trailing slashes to generated routes - by @rchl in nuxt-modules#733 (b0620)
- Crash on using nuxt-i18n properties in a component with i18n options - by @rchl in nuxt-modules#736 (fd8b6)
- Revert back to generating routes from extendRoutes() - by @rchl in nuxt-modules#751 (43978)
- Initial redirect breaks reactivity in static mode - by @rchl (54b81)
- Preserve query when handling rootRedirect - by @rchl in nuxt-modules#771 (b2016)
- Handling of trailing slash in localePath - by @rchl in nuxt-modules#756 (1a693)
- Incorrect SEO links when vue-loader forces local i18n instance - by @rchl in nuxt-modules#786 (8cf17)
- Generate fallback routes for static build - by @rchl in nuxt-modules#808 (c2106)
- Redirect loop on initial load (static mode & route with no locale) - by @rchl (4c9bc)
- Restore compatibility with Nuxt <2.14 - by @rchl in nuxt-modules#830 (02f6b)
- Don't crash on missing route when parsing page component options - by @rchl in nuxt-modules#841 (46bbd)
- Null-check route to avoid rare crashes - by @rchl (fc02a)
- Force-transpile deepcopy dependency to fix IE11 - by @rchl in nuxt-modules#861 (9b9fe)
- Only import build-time dependency at build time - by @rchl in nuxt-modules#875 (095cc)
- Remove postinstall script that breaks production - by @rchl (56f80)
- Fails at extending routes when followed by another module - by @rchl in nuxt-modules#884 (c0d13)
- Add plugins from the main context to have consistent loading order - by @rchl in nuxt-modules#889 (1ec88)
- ("prefix" strategy) redirect from root doesn't respect cookie locale - by @rchl in nuxt-modules#890 (d3b09)
- Add x-default hreflang tag for improved SEO - by @divine in nuxt-modules#922 (b35bc)
- Don't use optional chaining for compatibility reasons - by @rchl in nuxt-modules#930 (2d966)
- Node-libs-browser being imported on the client - by @janKollars, Jan Kollars and @rchl in nuxt-modules#936 (7490a)
- Use local klona dependency from the plugin - by @rchl in nuxt-modules#1008 (42c3c)
- LocaleProperties undefined when component used - by @iifawzi in nuxt-modules#1043 (ff56a)
- Invalid canonical SEO link with differentDomains - by @rchl in nuxt-modules#1049 (d0531)
- Compatibility issue with Nuxt 2.15.0 - by @rchl (9d276)
- Compatibility issue with Nuxt 2.15.0 - by @rchl in nuxt-modules#1064 (b5492)
- Use mjs version of klona - by @pi0 in nuxt-modules#1079 (bb044)
- Avoid using commonjs for runtime (vite support) - by @pi0 (3fc14)
- Avoid using commonjs for runtime (vite support) - by @rchl in nuxt-modules#1080 (a9003)
- Recursive clone triggered when "locales" object made reactive - by @rchl in nuxt-modules#1090 (83c43)
- Support localePath with path input and customized routes - by @Energon7, Azer and @rchl in nuxt-modules#1088 (40439)
- Don't apply any locale-logic to non-existent routes - by @rchl in nuxt-modules#1093 (71804)
- Ensure langDir is escaped on Windows - by @kedrzu in nuxt-modules#1097 (a0a3a)
- LocalePath/localeRoute missing query params - by @kairyou and @rchl in nuxt-modules#1103 (0a957)
- Page not updated on changing lazy locale files (dev mode) - by @rchl in nuxt-modules#1104 (e1ff0)
- Only replace ".js" at the end of the resolved klona path - by @rchl in nuxt-modules#1110 (204d7)
- Router base not considered on redirecting in static mode - by @rchl in nuxt-modules#1119 (75b7c)
- Move lodash.merge to dependencies - by @rchl (b3f3f)
- Crash registering the vue-i18n-loader in old Node versions - by @rchl (43022)
- IE11 compatibility issue due to is-https package - by @rchl in nuxt-modules#1138 (dcf43)
- Handle protocol in the domain key for different domains - by @divine in nuxt-modules#1169 (45b2b)
- Ensure localeProperties is reactive (on locale change) - by @rchl in nuxt-modules#1208 (d2dd4)
- Redirect without appending extra chars - by @divine and @rchl in nuxt-modules#1214 (0527d)
- Don't skip the cookie if no locale is detected in the route - by @strebl in nuxt-modules#1235 (6c9b4)
- Custom routes with optional params adjusted incorrectly - by @rchl in nuxt-modules#1243 (203f3)
- Error on loading when using nuxt-vite - by @rchl in nuxt-modules#1251 (cb67e)
- Return the redirect path when resolving redirects with localePath - by @rchl in nuxt-modules#1253 (3538f)
- Crash on using $nuxtI18nHead from nuxt.config's head - by @rchl in nuxt-modules#1273 (b4aae)
- Adjust strange redirection logic for prefix_and_default - by @rchl in nuxt-modules#1304 (578ac)
- Load vue-template-compiler with nuxt.resolver.requireModule - by @kazupon in nuxt-modules#1327 (c5a3c)
- Vue-i18n runtime path - by @johannschopplich in nuxt-modules#1 (83bf2)
- Bundler extending - by @kazupon (db250)
- Resolve type missing - by @kazupon (b5cdb)
- Cannot work on nuxt3 - by @kazupon (6aac0)
- VueI18nBridgePath wrong - by @baixiaoyu2997 in nuxt-modules#1417 (2af6f)
- Don't detect locale from route when using no_prefix - by @rchl in nuxt-modules#1421 (60978)
- Fixed locale changing issue in server side middleware - by @suleymangezsat and Süleyman Gezsat in nuxt-modules#1429 (c1023)
- Nuxt3 ssr for cookie - by @kazupon (d7251)
- Infinite redirect on URL with special characters - by @rchl in nuxt-modules#1472 (426af)
- VueI18n.messages option loading - by @kazupon (0923c)
- Change nuxt import id #app to #imports - by @kazupon (bef4f)
- Nuxt upgrade - by @kazupon (542da)
- Change to addImports - by @kazupon (655f2)
- Remove deprecated nuxt kit api - by @kazupon (136e0)
- Module build transpiler - by @kazupon (3cc4c)
- Lint warnings - by @kazupon (a3b19)
- 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-modules#1522 (88b6d)
- Avoid deprecated use of
params
on vue-router - by @kazupon in nuxt-modules#1523 (166db) - Duplicate onLanguageSwitched calls - by @kazupon in nuxt-modules#1528 (cf123)
- Custom nested route path for configration - by @kazupon in nuxt-modules#1531 (f9526)
- Add
defineNuxtRouteMiddleware
wrapper - by @danielroe in nuxt-modules#1558 (1585f) - Cannot generate on differentDomains - by @kazupon in nuxt-modules#1559 (c6ccd)
- Type errors - by @kazupon in nuxt-modules#1571 (ba86c)
- Disable node v19 - by @kazupon in nuxt-modules#1573 (49366)
- Wrong packaging - by @kazupon in nuxt-modules#1574 (e0610)
- Wrong resolving and exports - by @kazupon in nuxt-modules#1575 (578b6)
- Wrong locales file extension - by @luthfi-hh in nuxt-modules#1578 (1ee24)
- Resolve type definition missing - by @kazupon in nuxt-modules#1583 (137b4)
- Peer dependencies conflict on pnpm - by @kazupon in nuxt-modules#1584 (eb27d)
- Avoid route reactivity value missing - by @kazupon in nuxt-modules#1586 (fadc5)
- Prefix strategy routing - by @kazupon in nuxt-modules#1592 (e98a0)
- Cannot work i18n custom block on 'lazy: false' - by @kazupon in nuxt-modules#1595 (da521)
- Cannot work browser locale on no_prefix strategy - by @kazupon in nuxt-modules#1597 (0423e)
- Default composition mode - by @kazupon in nuxt-modules#1599 (fc4b4)
- Diffrent domain loop redirection - by @kazupon in nuxt-modules#1606 (ad45b)
- Locale resources not loaded on windows - by @kazupon in nuxt-modules#1607 (49411)
- Non i18n custom block transforming - by @kazupon in nuxt-modules#1608 (04f0c)
- Suppress warning on 'prefix' strategy - by @kazupon in nuxt-modules#1612 (3f0e5)
- Support i18n composable functions callable on definePageMeta functions - by @kazupon in nuxt-modules#1629 (f6758)
- Extract defineI18nRoute options fully - by @kazupon in nuxt-modules#1636 (bc06d)
- Locale resources esm loading with import assertions - by @kazupon in nuxt-modules#1637 (068e9)
- Install failing with @vue/composition-api peer deps - by @kazupon in nuxt-modules#1639 (fa580)
- Use nuxt3 rc12 on nuxtjs/i18n package with resolution field - by @kazupon (52b36)
- Enable includeUprefixedFallback on nitro:init hook - by @kazupon in nuxt-modules#1642 (f7f71)
- Upgrade vue-i18n-routing for peer deps issue - by @kazupon in nuxt-modules#1646 (4ba61)
- Resolve deps modules - by @kazupon in nuxt-modules#1653 (b832f)
- V8 docs with docus official release version - by @kazupon in nuxt-modules#1657 (3a466)
- Cannot export some perperties and functions via useI18n as local scope - by @kazupon in nuxt-modules#1663 (378e2)
- AlwaysRedirect in detectBrowserLanguage - by @kazupon in nuxt-modules#1668 (b0659)
- API type completion - by @kazupon in nuxt-modules#1682 (bdf0d)
- Cannot work locale changing, when we move with
<NuxtLink>
onno_prefix
- by @kazupon in nuxt-modules#1686 (159c4) - Missing dependency modules such as
vue-i18n-routing
and@intlify/vue-*
- by @kazupon in nuxt-modules#1692 (563d6) - Lazy loading for fallback locale - by @kazupon in nuxt-modules#1694 (d43ee)
- Optimize tree-shaking for vue-i18n related modules - by @kazupon in nuxt-modules#1699 (8d278)
- Cannot work completion for Composer interface - by @kazupon in nuxt-modules#1707 (1876c)
- Not resolve deps on monorepo - by @kazupon in nuxt-modules#1712 (ef240)
- Ensure same symbol on vue-i18n - by @kazupon in nuxt-modules#1714 (395e4)
- Format - by @kazupon (02ec6)
- Merge lazy loading resources to initial loading resources - by @kazupon in nuxt-modules#1723 (26f66)
- Not reoslve vue-i18n module - by @kazupon in nuxt-modules#1726 (226e2)
- Hydration miss match for prerender - by @kazupon in nuxt-modules#1733 (caaea)
- Resolve extending messages correctly - by @kazupon in nuxt-modules#1765 (46bd9)
- Resolve vue-i18n related modules on nuxt layers - by @kazupon in nuxt-modules#1768 (e93ce)
- Not work differentDomains - by @kazupon in nuxt-modules#1770 (cc6cc)
- Don't expose full project path throuh
langDir
option - by @kazupon in nuxt-modules#1786 (0738a) - Resolve ComponentCustomProperties type errors - by @kazupon in nuxt-modules#1791 (81e29)
- action:
- Wrong branch - by @kazupon (a5591)
- deps:
- Update dependency cookie to ^0.4.0 - by @renovate-bot (4223f)
- Update all non-major dependencies - by @renovate-bot (61231)
- Update all non-major dependencies - by @paulgv in nuxt-modules#375 (9efbb)
- Update dependency acorn to v7 - by @renovate-bot (be3dd)
- Update dependency acorn to v7 - by @paulgv in nuxt-modules#392 (9fc56)
- Update dependency acorn-walk to v7 - by @renovate-bot (77111)
- Update dependency acorn-walk to v7 - by @paulgv in nuxt-modules#393 (06ddf)
- Update dependency @intlify/vue-i18n-loader to v1 - by @renovate[bot] and @renovate-bot in nuxt-modules#659 (9886e)
- Update dependency is-https to v2 - by @renovate[bot] and @renovate-bot in nuxt-modules#744 (baf30)
- Pin dependencies - by @renovate[bot] and @renovate-bot in nuxt-modules#865 (d6654)
- Update dependency is-https to v3 - by @renovate[bot] and @renovate-bot in nuxt-modules#997 (cd377)
- Update all non-major dependencies - by @renovate[bot] and @renovate-bot in nuxt-modules#1048 (8f4ce)
- detectBrowserLanguage:
- Use ISO code if available - by @owenandrews and @rchl in nuxt-modules#965 (1e39a)
- differentDomains:
- Match domain properly on client if port provided - by @rchl in nuxt-modules#832 (3a0bc)
- Handling of runtime domains from store - by @enwin and @rchl in nuxt-modules#1183 (4d770)
- docs:
- Typo in Spanish accent mark - by @x-N0 in nuxt-modules#867 (4fadb)
- Fix various documentation links after migration - by @rchl (19c51)
- Refactor options documentation - by @rchl in nuxt-modules#888 (5f295)
- Add warnings regarding no_prefix strategy - by @Khalphion in nuxt-modules#891 (bbcba)
- Add missing parenthesis - by @mbinet in nuxt-modules#941 (4ecde)
- Include "defaultLocale" in the example configuration - by @bottlehs in nuxt-modules#951 (6bacb)
- Add defaultLocale to examples - by @bottlehs in nuxt-modules#955 (4b69c)
- Clarify the type of the "vueI18n" option - by @rchl (c9be5)
- Remove unwanted characters - by @rchl (bc9f7)
- Fix some links in the documentation - by @rchl (12492)
- Fix some more links in the documentation - by @rchl (abbf2)
- Missing semicolon in Locales option example - by @qnp in nuxt-modules#1056 (e9f2a)
- Adjusted example code in documentation to call the right context - by @gekkedev in nuxt-modules#1087 (7b8f7)
- Refactor and separate some pages related to routing - by @rchl (89eb1)
- Correct links to [Custom paths] and [Ignore routes] - by @hydRAnger in nuxt-modules#1392 (09194)
- Add info on using dynamic translations with _.vue - by @rchl (b6039)
- gen:
- Consider named functions - by @ineshbose in nuxt-modules#1616 and nuxt-modules#1617 (e928b)
- generate:
- Don't try to redirect route when static generating - by @rchl in nuxt-modules#989 (d5957)
- lazy:
- Include default locale in the main bundle - by @rchl in nuxt-modules#819 (6ed4a)
- Make client use translations loaded on the server - by @rchl in nuxt-modules#823 (06bc5)
- Webpack error when only default locale exists - by @rchl in nuxt-modules#825 (97f1d)
- Don't try to copy locales to build dir at run-time - by @rchl in nuxt-modules#827 (55dac)
- Error importing file when having imports within "locale.file" - by @rchl (3cb1d)
- Error importing file when having imports within "locale.file" - by @rchl in nuxt-modules#836 (fbc0b)
- Failure to load locales on SPA navigation to default locale - by @rchl in nuxt-modules#846 (c2aaf)
- Null-check nuxtState as it might not exist in SPA - by @rchl in nuxt-modules#859 (67633)
- Only process lang files with js, ts and json extensions - by @rchl in nuxt-modules#1070 (1cf1a)
- Allow extensions yml/yaml when loading lazy locales - by @rchl (01f92)
- Message function not working when using lazy loading - by @rchl in nuxt-modules#1125 (68b58)
- middleware:
- Return after root redirect - by @paulgv (c2ce7)
- module:
- Transpile edge aswell - by @dargmuesli in nuxt-modules#1516 (0d0af)
- parse-pages:
- Add jsx plugin for .vue files using jsx syntax - by @OrekiSH and inkblot in nuxt-modules#1356 (8cdb9)
- routes:
- Fix routes being generated after other modules - by @rchl in nuxt-modules#851 (b4531)
- routing:
- seo:
- test:
- Fix test expectation for trailingSlash=true - by @rchl (c9f2e)
- types:
- Remove
null
result fromgetLocaleCookie
to simplify types - by @rchl (df5ac) - Update NuxtI18nSeo interface to use VueMeta types - by @rchl (3a4ad)
- Move getLocaleCookie/setLocaleCookie/SetLocale to proper interface - by @rchl (7d3ec)
- Fixed various types for NuxtI18n configuration - by @rchl (6f6c2)
- Add type for Nuxt's
context.app.i18n
- by @rchl (d5afd) - Export
NuxtVueI18n
namespace to allow to annotate configuration - by @rchl (906a7) - Add types for in-component options - by @rchl (e2e3b)
- Use correct module name for nuxt augmentation - by @rchl (46f67)
- Add missing seo: false type for component options - by @rchl (0fae9)
- Specify arguments for onLanguageSwitched and beforeLanguageSwitch - by @rchl (da6a5)
- Add vueI18nLoader to AllOptionsInterface - by @munierujp in nuxt-modules#634 (f1dd8)
- Fix type of baseUrl to allow string - by @rchl (a495c)
- Extend NuxtOptions with "i18n" (when using i18n in the root of Nuxt config) - by @rchl (7c524)
- Fix type of detectBrowserLanguage to allow false - by @shgtkshruch in nuxt-modules#793 (c62f1)
- Add types for app.localePath and co. - by @rchl in nuxt-modules#849 (dfd6d)
- Misplaced jsdoc deprecated wrong API - by @rchl (9736b)
- More specific types for $nuxtI18nHead/$nuxtI18nSeo - by @rchl (02cc0)
- Fix "lazy" type in deprecated types - by @fabis94 and @rchl in nuxt-modules#1190 (48231)
- Fix compatibility issue with typescript 4.3.x+ - by @rchl in nuxt-modules#1205 (acc11)
- Remove
- Register global mixins from plugins - by @paulgv (2ceb8)
This changelog is generated by GitHub Releases
- docs: Upgrade to latest Docus - by @Tahul in nuxt-modules#1702 (dfceb)
- Missing dependency modules such as
vue-i18n-routing
and@intlify/vue-*
- by @kazupon in nuxt-modules#1692 (563d6) - Lazy loading for fallback locale - by @kazupon in nuxt-modules#1694 (d43ee)
- Optimize tree-shaking for vue-i18n related modules - by @kazupon in nuxt-modules#1699 (8d278)
This changelog is generated by GitHub Releases
- Cannot work locale changing, when we move with
<NuxtLink>
onno_prefix
- by @kazupon in nuxt-modules#1686 (159c4)
This changelog is generated by GitHub Releases
- Custom routes optimized for Nuxt 3 file based routing - by @kazupon in nuxt-modules#1673 (a7fc4)
- Use nuxt3 rc12 on nuxtjs/i18n package with resolution field - by @kazupon (52b36)
- Enable includeUprefixedFallback on nitro:init hook - by @kazupon in nuxt-modules#1642 (f7f71)
- Upgrade vue-i18n-routing for peer deps issue - by @kazupon in nuxt-modules#1646 (4ba61)
- Resolve deps modules - by @kazupon in nuxt-modules#1653 (b832f)
- V8 docs with docus official release version - by @kazupon in nuxt-modules#1657 (3a466)
- Cannot export some perperties and functions via useI18n as local scope - by @kazupon in nuxt-modules#1663 (378e2)
- AlwaysRedirect in detectBrowserLanguage - by @kazupon in nuxt-modules#1668 (b0659)
- API type completion - by @kazupon in nuxt-modules#1682 (bdf0d)
- gen: Consider named functions - by @ineshbose in nuxt-modules#1616 and nuxt-modules#1617 (e928b)
This changelog is generated by GitHub Releases
- Merge messages if any - by @yassilah in nuxt-modules#1615
- Diffrent domain loop redirection - by @kazupon in nuxt-modules#1606
- Locale resources not loaded on windows - by @kazupon in nuxt-modules#1607
- Non i18n custom block transforming - by @kazupon in nuxt-modules#1608
- Suppress warning on 'prefix' strategy - by @kazupon in nuxt-modules#1612
- Support i18n composable functions callable on definePageMeta functions - by @kazupon in nuxt-modules#1629
- Extract defineI18nRoute options fully - by @kazupon in nuxt-modules#1636
- Locale resources esm loading with import assertions - by @kazupon in nuxt-modules#1637
- Install failing with @vue/composition-api peer deps - by @kazupon in nuxt-modules#1639
This changelog is generated by GitHub Releases
- Vue-i18n option loading with function - by @kazupon in nuxt-modules#1600
- Avoid route reactivity value missing - by @kazupon in nuxt-modules#1586
- Prefix strategy routing - by @kazupon in nuxt-modules#1592
- Cannot work i18n custom block on 'lazy: false' - by @kazupon in nuxt-modules#1595
- Cannot work browser locale on no_prefix strategy - by @kazupon in nuxt-modules#1597
- Default composition mode - by @kazupon in nuxt-modules#1599
This changelog is generated by GitHub Releases
- Wrong locales file extension - by @luthfi-hh in nuxt-modules#1578
- Resolve type definition missing - by @kazupon in nuxt-modules#1583
- Peer dependencies conflict on pnpm - by @kazupon in nuxt-modules#1584
This changelog is generated by GitHub Releases
- Support nuxt v3 rc.11 - by @kazupon in nuxt-modules#1551
- Support
rootRedirect
option - by @kazupon in nuxt-modules#1560 - Support dynamic route params localization - by @kazupon in nuxt-modules#1562
- Support page transition locale switching fully - by @kazupon in nuxt-modules#1566
- Support per-component translations - by @kazupon in nuxt-modules#1567
- Support nuxt3 rc.12 - by @kazupon in nuxt-modules#1570
- Add
defineNuxtRouteMiddleware
wrapper - by @danielroe in nuxt-modules#1558 - Cannot generate on differentDomains - by @kazupon in nuxt-modules#1559
- Type errors - by @kazupon in nuxt-modules#1571
- Disable node v19 - by @kazupon in nuxt-modules#1573
- Wrong packaging - by @kazupon in nuxt-modules#1574
- Wrong resolving and exports - by @kazupon in nuxt-modules#1575
This changelog is generated by GitHub Releases
- Support differentDomains - by @kazupon in nuxt-modules#1540
- Support
defaultDirection
option - by @kazupon in nuxt-modules#1541 - Custome route path for component with
defineI18nRoute
- by @kazupon in nuxt-modules#1544 - Support ignoring localized routes - by @kazupon in nuxt-modules#1546
- Support extending messages hook - by @kazupon in nuxt-modules#1550
This changelog is generated by GitHub Releases
- Support
indetifierAttribue
option foruseLocaleHead
- by @kazupon in nuxt-modules#1526 - Support
strategy
property API - by @kazupon in nuxt-modules#1533 - Support detect browser language fully - by @kazupon in nuxt-modules#1534
- 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-modules#1522
- Avoid deprecated use of
params
on vue-router - by @kazupon in nuxt-modules#1523 - Duplicate onLanguageSwitched calls - by @kazupon in nuxt-modules#1528
- Custom nested route path for configration - by @kazupon in nuxt-modules#1531
- module: Transpile edge aswell - by @dargmuesli in nuxt-modules#1516
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 💚
7.3.0 (2022-08-24)
7.2.3 (2022-08-01)
7.2.2 (2022-04-25)
7.2.1 (2022-04-01)
- don't detect locale from route when using no_prefix (#1421) (609782f)
- docs: add info on using dynamic translations with _.vue (b6039d2), closes #1400
- docs: correct links to [Custom paths] and [Ignore routes] (#1392) (091944c)
- parse-pages: add jsx plugin for .vue files using jsx syntax (#1356) (8cdb999)## 7.2.0 (2021-11-04)
- docs: refactor and separate some pages related to routing (89eb12f)
- load vue-template-compiler with nuxt.resolver.requireModule (#1327) (c5a3ca8)
7.1.0 (2021-10-19)
7.0.3 (2021-08-31)
7.0.2 (2021-08-12)
7.0.1 (2021-08-05)
7.0.0 (2021-08-03)
- rename package to @nuxtjs/i18n
- set redirectOn to root by default (#1244)
- remove vuex syncLocale & vuex syncMessages (#1240)
- disable addDirAttribute by default (#1239)
- replace onlyOnNoPrefix and onlyOnRoot with redirectOn (#1210)
- remove deprecated seo option (#1232)
- remove deprecated $nuxtI18nSeo (#1207)
- types: remove deprecated NuxtVueI18n (#1206)
- remove deprecated beforeLanguageSwitch (#1200)
- 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 & vuex syncMessages (#1240) (399f1a3)
- rename package to @nuxtjs/i18n (b3ef21c)
- replace onlyOnNoPrefix and onlyOnRoot with redirectOn (#1210) (2eb955a)
- set redirectOn to root by default (#1244) (956df98)
- types: remove deprecated NuxtVueI18n (#1206) (e96688c)
6.28.1 (2021-08-03)
6.28.0 (2021-07-22)
- custom routes with optional params adjusted incorrectly (#1243) (203f3db)
- don't skip the cookie if no locale is detected in the route (#1235) (6c9b48f)
6.27.3 (2021-07-09)
6.27.2 (2021-06-23)
- ensure localeProperties is reactive (on locale change) (#1208) (d2dd400)
- types: fix compatibility issue with typescript 4.3.x+ (#1205) (acc1145)
6.27.1 (2021-06-15)
- types: fix "lazy" type in deprecated types (#1190) (482317b)
- handle protocol in the domain key for different domains (#1169) (45b2b82)
6.27.0 (2021-05-07)
6.26.0 (2021-04-20)
6.25.0 (2021-04-13)
6.24.0 (2021-04-09)
6.23.0 (2021-04-07)
- IE11 compatibility issue due to is-https package (#1138) (dcf43de), closes #1137
- types: misplaced jsdoc deprecated wrong API (9736bf1)
6.22.3 (2021-03-30)
6.22.2 (2021-03-26)
- crash registering the vue-i18n-loader in old Node versions (43022c4)
6.22.1 (2021-03-25)
- move lodash.merge to dependencies (b3f3f43)
6.22.0 (2021-03-24)
6.21.1 (2021-03-15)
- only replace ".js" at the end of the resolved klona path (#1110) (204d77d), closes #1109
- page not updated on changing lazy locale files (dev mode) (#1104) (e1ff096), closes #905
6.21.0 (2021-03-10)
6.20.6 (2021-03-08)
6.20.5 (2021-03-08)
- 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)
6.20.4 (2021-03-01)
- avoid using commonjs for runtime (vite support) (3fc14ba)
- use mjs version of klona (#1079) (bb0445d)
6.20.3 (2021-02-24)
- lazy: allow extensions yml/yaml when loading lazy locales (01f92ae)
6.20.2 (2021-02-19)
6.20.1 (2021-02-15)
- compatibility issue with Nuxt 2.15.0 (9d276d7), closes #1063
- docs: missing semicolon in Locales option example (#1056) (e9f2a6a)
6.20.0 (2021-02-03)
6.19.0 (2021-02-01)
- invalid canonical SEO link with differentDomains (#1049) (d05317b)
- deps: update all non-major dependencies (#1048) (8f4cef5)
- localeProperties undefined when component used (#1043) (ff56a35)
6.18.0 (2021-01-13)
- expose API for detecting browser locale (#1022) (ac75635), closes #1018
- expose localeProperties property (#1016) (a9457a0), closes #916
6.17.0 (2021-01-05)
- use local klona dependency from the plugin (#1008) (42c3cd5), closes #1004
- deps: update dependency is-https to v3 (#997) (cd377b4)
6.16.0 (2020-12-09)
- 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)
6.15.4 (2020-10-19)
6.15.3 (2020-10-14)
6.15.2 (2020-10-13)
- docs: add warnings regarding no_prefix strategy (#891) (bbcbad9)
- seo: don't include queries in canonical tag (d09ad9e), closes #912
- seo: enable canonical tag for all strategies (4ae4199)
- seo: enable self-referential canonical tags (b62fd39)
- add x-default hreflang tag for improved SEO (#922) (b35bc57)
6.15.1 (2020-09-11)
- ("prefix" strategy) redirect from root doesn't respect cookie locale (#890) (d3b09f5), closes #887
- add plugins from the main context to have consistent loading order (#889) (1ec8814), closes #874
- docs: refactor options documentation (#888) (5f295be)
6.15.0 (2020-09-10)
6.14.2 (2020-09-08)
6.14.1 (2020-09-08)
- remove postinstall script that breaks production (56f8084)
6.14.0 (2020-09-08)
- add "cookieSecure" setting to set the Secure flag on the cookie (#869) (0f2d762)
- docs: migrate docs to Nuxt Content (#864) (affb845)
- add setting to use cross-origin cookie for "detectBrowserLocale" (#853) (e446676)
- only import build-time dependency at build time (#875) (095cc78)
- deps: pin dependencies (#865) (d66545f)
- docs: fix various documentation links after migration (19c516c)
- docs: typo in Spanish accent mark (#867) (4fadb8b)
6.13.12 (2020-08-22)
6.13.11 (2020-08-21)
6.13.10 (2020-08-18)
- routes: fix routes being generated after other modules (#851) (b453191), closes #850
- types: add types for app.localePath and co. (#849) (dfd6d76)
6.13.9 (2020-08-15)
6.13.8 (2020-08-11)
- don't crash on missing route when parsing page component options (#841) (46bbdc5), closes #838
- null-check route to avoid rare crashes (fc02a65)
6.13.7 (2020-08-05)
6.13.6 (2020-08-04)
6.13.5 (2020-08-04)
6.13.4 (2020-08-04)
6.13.3 (2020-08-04)
- lazy: include default locale in the main bundle (#819) (6ed4ae6), closes #818
- lazy: make client use translations loaded on the server (#823) (06bc5f1), closes #486 #663
6.13.2 (2020-07-31)
- generate fallback routes for static build (#808) (c2106f7), closes #805
- redirect loop on initial load (static mode & route with no locale) (4c9bc13), closes #798
- types: fix type of detectBrowserLanguage to allow false (#793) (c62f19b)
6.13.1 (2020-07-03)
6.13.0 (2020-07-02)
- handling of trailing slash in localePath (#756) (1a69387), closes #717
- initial redirect breaks reactivity in static mode (54b8186), closes #737
- preserve query when handling rootRedirect (#771) (b201609)
- types: extend NuxtOptions with "i18n" (when using i18n in the root of Nuxt config) (7c5241b)
6.13.0-beta.0 (2020-06-03)
6.12.2 (2020-06-02)
- revert back to generating routes from extendRoutes() (#751) (439781f), closes #750
- deps: update dependency is-https to v2 (#744) (baf3082)
6.12.1 (2020-05-29)
- 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
6.12.0 (2020-05-25)
- add localeRoute API for getting the localized route (#729) (0c4bd52), closes #728
- add support for using localePath with no route name and path (#727) (7a011a0), closes #691
- don't do browser language detection during Nuxt generate (#718) (f1c5aca)
- don't leave out non-prefixed routes for generate + prefix strategy (#726) (97fabbf), closes #700
- trigger language detection on initial load in generated mode (#724) (a853de9)
6.11.1 (2020-05-10)
6.11.0 (2020-04-30)
6.10.1 (2020-04-23)
- types: fix type of baseUrl to allow string (a495cb3)
6.10.0 (2020-04-23)
6.9.3 (2020-04-23)
- crash with latest vue-i18n related to using null locale (#678) (642fddf)
- lock vue-i18n version to 8.16.0 until crashing issue is fixed (#673) (9e99f19)
6.9.2 (2020-04-22)
- lock vue-i18n version to 8.16.0 until crashing issue is fixed (ad82009)
6.9.1 (2020-04-14)
6.9.0 (2020-04-14)
6.8.1 (2020-04-03)
6.8.0 (2020-04-02)
6.7.2 (2020-03-31)
6.7.1 (2020-03-30)
6.7.0 (2020-03-24)
6.6.1 (2020-03-16)
- 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)
6.6.0 (2020-02-27)
- Added cookieDomain option to override locale cookie's domain (#599) (7525cd7)
- seo: additional catchall hreflang tags (#597) (ebd2213), closes #522
- support external configuration file for vue-i18n options (#605) (c55bc6a), closes #585 #237
6.5.0 (2020-01-20)
6.4.1 (2019-12-02)
6.4.0 (2019-11-18)
- parser: parse typescript 3.7 shipped proposals (a69a8fb)
6.3.1 (2019-11-11)
- default locale catch-all route overrides locale-specific one (196bf9c), closes #152
- Direct navigation to URL in SPA with vue-router in hash mode (0a9c4c8), closes #490
- make switchLocalePath work from Nuxt plugin or middleware (8a1c052), closes #480
- set sameSite=Lax option for detected-language cookie (8d84986), closes #516
6.3.0 (2019-09-26)
- types: add missing seo: false type for component options (0fae937)
- all routes removed when locales are absent (1c5e42c), closes #444
- types: specify arguments for onLanguageSwitched and beforeLanguageSwitch (da6a523)
- Don't inject to store if store is not defined (e547639)
- Locale prefixes missing for child routes with custom paths (10c1d9d), closes #359
- NO_PREFIX - localePath with
path
returns route with prefix (4d4186c), closes #457 - Route name missing for routes that have children (bd23683), closes #356
- Inject $i18n into Vuex Store as
this.$i18n
(bb31cb0)
6.2.1 (2019-09-13)
- types: use correct module name for nuxt augmentation (46f67ea)
6.2.0 (2019-09-13)
- crash on no_prefix + invalid/tempered locale cookie (4b56d84)
- Don't try to process routes with no component (a53e32a)
- failure to change locale on initial try with nuxt generate (9b4b6f6), closes #378
6.1.3 (2019-09-04)
6.1.2 (2019-09-04)
- issue with locale not being updated when cookie not stored (999ac4b)
- multiple redirects on switching to another locale (14ceeb3)
- types: add type for Nuxt's
context.app.i18n
(d5afd8b) - types: add types for in-component options (e2e3bca)
- types: export
NuxtVueI18n
namespace to allow to annotate configuration (906a776) - types: fixed various types for NuxtI18n configuration (6f6c235)
- types: move getLocaleCookie/setLocaleCookie/SetLocale to proper interface (7d3eceb)
- types: remove
null
result fromgetLocaleCookie
to simplify types (df5ac8a) - types: update NuxtI18nSeo interface to use VueMeta types (3a4ada6)
app.$t
API was removed (ca198e5) - This is not a breaking change since this API has never worked according to my understanding.getLocaleCookie
will no longer returnnull
value in case cookie is missing. Instead it will consistently returnundefined
. This is unlikely to affect anyone unless one was checking fornull
specifically which would not be a correct thing to do even before.
6.1.1 (2019-08-28)
- fix loading fallback locale with lazy loading (d8db5b1)
- locale not set with differentDomains enabled (634690a)
- redirects to wrong route after SPA navigation (8bf61d9)
6.1.0 (2019-08-27)
6.0.2 (2019-08-20)
- warning in nuxt 2.9.x / vue-meta 2.x (3605632)
6.0.1 (2019-08-13)
- deps: update all non-major dependencies (#375) (9efbbf0)
- deps: update dependency acorn to v7 (#392) (9fc564f)
- deps: update dependency acorn-walk to v7 (#393) (06ddf3e)
6.0.0 (2019-07-20)
- routing: resolve localePath with fullPath instead of href (b827681)
- Disable seo by default (741ae12), closes #346
- update link to SEO metadata generation logic (#352) (10a5ff2)
- Disable setLocale & setMessages mutations by default (76c9978)
- Rename and flatten vuex options (8897ac6)
- Dynamic route parameters translation (#345) (2d1d729), closes #79
- Use default locale's custom path if not defined for a locale (#354) (d30e5f0)
- Register global mixins from plugins (2ceb8e4)
- Store module's options have been flattened and renamed
- The mutations responsible for syncing nuxt-i18n's store module with vue-i18n's locale and messages are now disabled by default, you'll need to manually re-enable them in the module's configuration
preserveState
is now set automatically when registering the store module and cannot be set via the configuration anymore- Global seo option is now disabled by default. To
preserve the previous behaviour, set
seo: true
in the module's options. Doc: https://nuxt-community.github.io/nuxt-i18n/seo.html
6.0.0-0 (2019-07-01)
preserveState
is now set automatically when registering the store module and cannot be set via the configuration anymore
5.12.8 (2019-07-01)
NOTE: Version bump only, all fixes were released in
v5.12.7
already
- Move SEO types out of Vue module declaration (be085d5)
- Move SEO types out of Vue module declaration (#335) (0cc0ba0)
- Only require is-https dependency on the server (fixes #329) (8a728ef)
- revert using cookies package to fix cookie headers handling (#332) (9cd034d), closes #330
5.12.7 (2019-06-22)
- Move SEO types out of Vue module declaration (#335) (0cc0ba0)
- Only require is-https dependency on the server (fixes #329) (8a728ef)
- Revert using cookies package to fix cookie headers handling (#332) (9cd034d), closes #330
5.12.6 (2019-06-21)
5.12.5 (2019-06-20)
5.12.4 (2019-06-02)
- deps: update dependency cookie to ^0.4.0 (4223f6a)
- add types for nuxtI18nSeo (5811bbe)
- Unexpected token when using dynamic imports (#320) (7dd1dbc), closes #134 #301
5.12.3 (2019-05-13)
- remove explicit dependency on vue-template-compiler (fixes #297) (576382e)
- remove explicit dependency on vue-template-compiler (fixes #297) (#305) (2eff158)
5.12.2 (2019-05-09)
5.12.1 (2019-05-09)
- Fix duplicate child routes with PREFIX_AND_DEFAULT strategy (fixes #292) (#294) (76d5948)
- Fix exception when using multiple domains option (fixes #293) (#295) (17f1e07)
5.12.0 (2019-05-06)
5.11.0 (2019-05-05)
5.10.0 (2019-04-27)
- Prevent redirect failure when accessing a dynamic route with detectBrowserLanguage enabled (#266) (b7adba0)
- Upgrade vue-i18n to v8.11.1 (29f7f54), closes /github.com/kazupon/vue-i18n/blob/dev/CHANGELOG.md#8111-2019-04-26
5.9.0 (2019-04-25)
- pass nuxt context to loadLanguageAsync (3834899)
5.8.5 (2019-03-01)
5.8.4 (2019-02-22)
5.8.3 (2019-02-17)
5.8.2 (2019-02-15)
5.8.1 (2019-02-10)
5.8.0 (2019-01-27)
- Rename option encodeURI to encodePaths (776c2dd)
5.7.0 (2019-01-23)
- Upgrade vue-i18n (v8.2.1 -> v8.7.0) (feac945)
5.6.0 (2019-01-20)
- Create correct baseroute for switchlocalepath (#193) (909062f)
- Preserve route params in base route (13b2e73)
5.5.0 (2019-01-14)
- preserve queryString when redirecting to rootRedirect (#169) (1ddcac2)
- Set i18n_redirect cookie path to '/' (#143) (9ad540e)
- State not defined (#178) (142dcb0), closes #173
- Update types (#167) (225e700)
- Wait for lazy loading promises (#163) (8b42631)
- Allow i18n component to load json (#174) (21d4305)
- expose head SEO function to use in layout (#154) (ce373c4)
- make t() method available server-side through app.$t() (#168) (90bcd80)
- rework browser detection and save lang to cookie (#148) (d1bbc84)
5.4.4 (2018-10-23)
5.4.3 (2018-10-12)
5.4.2 (2018-10-12)
- Revert "feat: i18n.locale property changes when route changed" (9e04b00)
5.4.1 (2018-10-11)
- Include Types in NPM bundle (when published) (fc67f4e)
5.4.0 (2018-10-07)
5.3.0 (2018-09-11)
5.2.1 (2018-08-26)
5.2.0 (2018-08-24)
- Ability to define locale domains at runtime via Vuex store (0226b07)
5.1.1 (2018-08-14)
5.1.0 (2018-08-11)
5.0.3 (2018-08-10)
5.0.2 (2018-08-09)
5.0.1 (2018-08-09)
5.0.0 (2018-08-08)
- making hreflang href full-qualified (5dd4231)
- Upgrade vue-i18n to v8.0.0 (6b1a982)
- strategy: add PREFIX_AND_DEFAULT strategy (a7ea4df)
4.1.0 (2018-06-27)
4.0.2 (2018-06-27)
- support locales with names that match other locales (
en
anden-us
) (eeda1c5)
4.0.1 (2018-06-22)
4.0.0 (2018-06-07)
- Pages using i18n key need to be updated to use nuxtI18n key instead
3.3.1 (2018-06-06)
3.3.0 (2018-05-30)
- loadLanguageAsync: Support promises return in lang files. (9b220c3)
- Add support for X-Forwarded-Host (#92) (514ad63)
3.2.4 (2018-05-27)
3.2.3 (2018-05-10)
- Fix 'logger is not defined' error (b79b570)
3.2.2 (2018-05-10)
- Fix an issue where the module would attempt to generate og:locale tags without required ISO code (5dd97d5), closes #80
3.2.1 (2018-05-10)
3.2.0 (2018-05-09)
- Add parsePages & pages options (b2980cf)
3.1.0 (2018-05-01)
- Add og:locale support & fix i18n.seo component option (8c1588e)