nuxt-i18n
Advanced tools
Comparing version 6.13.8 to 6.13.9
@@ -0,1 +1,8 @@ | ||
### [6.13.9](https://github.com/nuxt-community/i18n-module/compare/v6.13.8...v6.13.9) (2020-08-15) | ||
### Bug Fixes | ||
* **lazy:** failure to load locales on SPA navigation to default locale ([#846](https://github.com/nuxt-community/i18n-module/issues/846)) ([c2aafd6](https://github.com/nuxt-community/i18n-module/commit/c2aafd63601675a2745e2fe2c052ccb1cc6e2802)), closes [#843](https://github.com/nuxt-community/i18n-module/issues/843) | ||
### [6.13.8](https://github.com/nuxt-community/i18n-module/compare/v6.13.7...v6.13.8) (2020-08-11) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "nuxt-i18n", | ||
"version": "6.13.8", | ||
"version": "6.13.9", | ||
"description": "i18n for Nuxt", | ||
@@ -58,3 +58,3 @@ "license": "MIT", | ||
"release": true, | ||
"releaseName": "${version}", | ||
"releaseName": "v${version}", | ||
"releaseNotes": "echo \"${changelog}\" | sed 1,2d" | ||
@@ -90,2 +90,3 @@ }, | ||
"cookie": "^0.4.0", | ||
"deepcopy": "^2.1.0", | ||
"is-https": "^2.0.0", | ||
@@ -92,0 +93,0 @@ "js-cookie": "^2.2.1", |
@@ -0,1 +1,2 @@ | ||
import deepcopy from 'deepcopy' | ||
import Vue from 'vue' | ||
@@ -53,8 +54,8 @@ import VueI18n from 'vue-i18n' | ||
const langs = {} | ||
const { locale } = app.i18n | ||
const { fallbackLocale, locale } = app.i18n | ||
if (locale) { | ||
langs[locale] = app.i18n.getLocaleMessage(locale) | ||
} | ||
if (defaultLocale && locale !== defaultLocale) { | ||
langs[defaultLocale] = app.i18n.getLocaleMessage(defaultLocale) | ||
if (fallbackLocale && locale !== fallbackLocale) { | ||
langs[fallbackLocale] = app.i18n.getLocaleMessage(fallbackLocale) | ||
} | ||
@@ -223,3 +224,3 @@ nuxtState.__i18n = { langs } | ||
// Set instance options | ||
const vueI18nOptions = typeof vueI18n === 'function' ? vueI18n(context) : vueI18n | ||
const vueI18nOptions = typeof vueI18n === 'function' ? vueI18n(context) : deepcopy(vueI18n) | ||
vueI18nOptions.componentInstanceCreatedListener = extendVueI18nInstance | ||
@@ -226,0 +227,0 @@ app.i18n = new VueI18n(vueI18nOptions) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115117
1445
9
+ Addeddeepcopy@^2.1.0
+ Addeddeepcopy@2.1.0(transitive)
+ Addedtype-detect@4.1.0(transitive)