Releases

v6.27.0 5/7/2021

Features

v6.26.0 4/20/2021

Features

  • lazy: option for not injecting messages to Nuxt state (#1153) (2231f3b), closes #1149

v6.25.0 4/13/2021

Features

  • types: add NuxtI18nInstance type for use with custom accessors (#1147) (aa4f4d8), closes #1146

v6.24.0 4/9/2021

Features

Bug Fixes

v6.23.0 4/7/2021

Features

  • support loading messages from file without lazy-loading (#1130) (03618fb), closes #412

Bug Fixes

  • IE11 compatibility issue due to is-https package (#1138) (dcf43de), closes #1137
  • types: misplaced jsdoc deprecated wrong API (9736bf1)

v6.22.3 3/30/2021

Bug Fixes

  • lazy: message function not working when using lazy loading (#1125) (68b580e), closes #1124

Refactoring

  • include fallback locale messages in the main bundle (#1129)

v6.22.2 3/26/2021

Bug Fixes

  • crash registering the vue-i18n-loader in old Node versions (43022c4)

v6.22.1 3/25/2021

Bug Fixes

  • move lodash.merge to dependencies (b3f3f43)

v6.22.0 3/24/2021

Features

Bug Fixes

  • router base not considered on redirecting in static mode (#1119) (75b7c6e), closes #1060

v6.21.1 3/15/2021

Bug Fixes

  • 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

v6.21.0 3/10/2021

Features

Bug Fixes

  • localePath/localeRoute missing query params (#1103) (0a95790)

v6.20.6 3/8/2021

Bug Fixes

v6.20.5 3/8/2021

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 3/1/2021

Bug Fixes

  • avoid using commonjs for runtime (vite support) (3fc14ba)
  • use mjs version of klona (#1079) (bb0445d)

v6.20.3 2/24/2021

Bug Fixes

  • lazy: allow extensions yml/yaml when loading lazy locales (01f92ae)

v6.20.2 2/19/2021

Bug Fixes

  • lazy: only process lang files with js, ts and json extensions (#1070) (1cf1ac2), closes #1068

v6.20.1 2/15/2021

Bug Fixes

  • compatibility issue with Nuxt 2.15.0 (9d276d7), closes #1063
  • docs: missing semicolon in Locales option example (#1056) (e9f2a6a)

v6.20.0 2/3/2021

Features

  • API for handling locale change during page transitions (#963) (23b9cc4)

v6.19.0 2/1/2021

Features

  • add dir property and defaultDirection option (#1023) (3b3dcc6)

Bug Fixes

  • invalid canonical SEO link with differentDomains (#1049) (d05317b)
  • deps: update all non-major dependencies (#1048) (8f4cef5)
  • localeProperties undefined when component used (#1043) (ff56a35)

v6.18.0 1/13/2021

Features

v6.17.0 1/5/2021

Features

  • fallbackLocale: support vue-i18n decision map fallback (#992) (b4c6cfd)

Bug Fixes

v6.16.0 12/9/2020

Features

  • onlyOnNoPrefix - detect browser locale when no prefix (#896) (15f0a44)

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 10/19/2020

Bug Fixes

v6.15.3 10/14/2020

Bug Fixes

  • don't use optional chaining for compatibility reasons (#930) (2d96629), closes #929

v6.15.2 10/13/2020

Bug Fixes

  • docs: add warnings regarding no_prefix strategy (#891) (bbcbad9)
  • seo: don't include queries in canonical link (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)

v6.15.1 9/11/2020

Bug Fixes

  • (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)

v6.15.0 9/10/2020

Features

Bug Fixes

  • differentDomains: Match domain properly on client if port provided (#832) (3a0bc88)

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 9/8/2020

Bug Fixes

  • fails at extending routes when followed by another module (#884) (c0d136b), closes #157

v6.14.1 9/8/2020

Bug Fixes

  • remove postinstall script that breaks production (56f8084)

v6.14.0 9/8/2020

Features

  • 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)

Bug Fixes

  • 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)