New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-i18n

Package Overview
Dependencies
Maintainers
3
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.27.1 to 6.27.2

28

package.json
{
"name": "nuxt-i18n",
"version": "6.27.1",
"version": "6.27.2",
"description": "i18n for Nuxt",

@@ -90,4 +90,4 @@ "license": "MIT",

"dependencies": {
"@babel/parser": "^7.14.5",
"@babel/traverse": "^7.14.5",
"@babel/parser": "^7.14.7",
"@babel/traverse": "^7.14.7",
"@intlify/vue-i18n-extensions": "^1.0.2",

@@ -102,9 +102,9 @@ "@intlify/vue-i18n-loader": "^1.1.0",

"ufo": "^0.7.5",
"vue-i18n": "^8.24.4"
"vue-i18n": "^8.24.5"
},
"devDependencies": {
"@babel/core": "7.14.5",
"@babel/preset-env": "7.14.5",
"@babel/runtime": "7.14.5",
"@nuxt/types": "2.15.4",
"@babel/core": "7.14.6",
"@babel/preset-env": "7.14.7",
"@babel/runtime": "7.14.6",
"@nuxt/types": "2.15.7",
"@nuxtjs/composition-api": "0.24.4",

@@ -128,16 +128,16 @@ "@nuxtjs/eslint-config-typescript": "6.0.1",

"codecov": "3.8.2",
"core-js": "3.14.0",
"eslint": "7.28.0",
"core-js": "3.15.1",
"eslint": "7.29.0",
"express": "4.17.1",
"husky": "4.3.8",
"jest": "27.0.4",
"jest": "27.0.5",
"jest-dev-server": "5.0.3",
"jsdom": "16.6.0",
"messageformat": "2.3.0",
"nuxt": "2.15.4",
"nuxt": "2.15.7",
"playwright-chromium": "1.12.2",
"release-it": "14.9.0",
"release-it": "14.10.0",
"serve-static": "1.14.1",
"typescript": "4.2.4"
"typescript": "^4.3.4"
}
}

@@ -135,4 +135,12 @@ import Vue from 'vue'

app.i18n.locale = newLocale
// @ts-ignore
app.i18n.localeProperties = klona(options.locales.find(l => l.code === newLocale) || { code: newLocale })
/** @type {import('../../types').LocaleObject} */
const newLocaleProperties = options.normalizedLocales.find(l => l.code === newLocale) || { code: newLocale }
// In case certain locale has more properties than another, reset all the properties.
for (const key of Object.keys(app.i18n.localeProperties)) {
app.i18n.localeProperties[key] = undefined
}
// Copy properties of the new locale
for (const [key, value] of Object.entries(newLocaleProperties)) {
Vue.set(app.i18n.localeProperties, key, klona(value))
}

@@ -329,3 +337,3 @@ if (options.vuex) {

i18n.localeCodes = klona(options.localeCodes)
i18n.localeProperties = klona(options.normalizedLocales.find(l => l.code === i18n.locale) || { code: i18n.locale })
i18n.localeProperties = Vue.observable(klona(options.normalizedLocales.find(l => l.code === i18n.locale) || { code: i18n.locale }))
i18n.defaultLocale = options.defaultLocale

@@ -332,0 +340,0 @@ i18n.differentDomains = options.differentDomains

@@ -1,2 +0,2 @@

import 'vue'
import Vue from 'vue'
import 'vuex'

@@ -3,0 +3,0 @@ import 'vue-i18n'

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