Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-i18n

Package Overview
Dependencies
Maintainers
2
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-i18n - npm Package Compare versions

Comparing version 6.13.8 to 6.13.9

7

CHANGELOG.md

@@ -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 @@

5

package.json
{
"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",

9

src/templates/plugin.main.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc