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.12.1-beta.0 to 6.12.1

5

CHANGELOG.md

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

### [6.12.1-beta.0](https://github.com/nuxt-community/nuxt-i18n/compare/v6.12.0...v6.12.1-beta.0) (2020-05-26)
### [6.12.1](https://github.com/nuxt-community/nuxt-i18n/compare/v6.12.0...v6.12.1) (2020-05-29)

@@ -6,3 +6,4 @@

* don't add trailing slashes to generated routes ([4825d61](https://github.com/nuxt-community/nuxt-i18n/commit/4825d6106bde71baa245875a97dfa0d88834b190)), closes [#717](https://github.com/nuxt-community/nuxt-i18n/issues/717)
* crash on using nuxt-i18n properties in a component with i18n options ([#736](https://github.com/nuxt-community/nuxt-i18n/issues/736)) ([fd8b684](https://github.com/nuxt-community/nuxt-i18n/commit/fd8b684a19a109bb68066716ed92dfb02fe900a2)), closes [#557](https://github.com/nuxt-community/nuxt-i18n/issues/557)
* don't add trailing slashes to generated routes ([#733](https://github.com/nuxt-community/nuxt-i18n/issues/733)) ([b062044](https://github.com/nuxt-community/nuxt-i18n/commit/b062044998062fe217f69a1e3d00184e34b7ffc5)), closes [#717](https://github.com/nuxt-community/nuxt-i18n/issues/717)
* favor non-prefixed route with prefix_and_default strategy ([#732](https://github.com/nuxt-community/nuxt-i18n/issues/732)) ([09d2c0f](https://github.com/nuxt-community/nuxt-i18n/commit/09d2c0ff39089802db67b2db9c67e46d93fda64d)), closes [#721](https://github.com/nuxt-community/nuxt-i18n/issues/721)

@@ -9,0 +10,0 @@ * remove "encodePaths" option and don't encode paths by default ([#731](https://github.com/nuxt-community/nuxt-i18n/issues/731)) ([aba92b3](https://github.com/nuxt-community/nuxt-i18n/commit/aba92b318559521c268d2d3bbe427653bb4c14d6)), closes [#712](https://github.com/nuxt-community/nuxt-i18n/issues/712)

12

package.json
{
"name": "nuxt-i18n",
"version": "6.12.1-beta.0",
"version": "6.12.1",
"description": "i18n for Nuxt",

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

"js-cookie": "^2.2.1",
"vue-i18n": "^8.17.3"
"vue-i18n": "^8.18.1"
},
"devDependencies": {
"@babel/core": "7.9.6",
"@babel/preset-env": "7.9.6",
"@babel/runtime": "7.9.6",
"@nuxt/types": "0.7.6",
"@babel/core": "7.10.1",
"@babel/preset-env": "7.10.1",
"@babel/runtime": "7.10.1",
"@nuxt/types": "0.7.7",
"@nuxtjs/eslint-config-typescript": "2.0.0",

@@ -99,0 +99,0 @@ "@nuxtjs/module-test-utils": "1.6.1",

@@ -196,4 +196,16 @@ import Vue from 'vue'

const extendVueI18nInstance = i18n => {
i18n.locales = locales
i18n.defaultLocale = defaultLocale
i18n.differentDomains = differentDomains
i18n.beforeLanguageSwitch = beforeLanguageSwitch
i18n.onLanguageSwitched = onLanguageSwitched
i18n.setLocaleCookie = locale => setLocaleCookie(locale, res, { useCookie, cookieDomain, cookieKey })
i18n.getLocaleCookie = () => getLocaleCookie(req, { useCookie, cookieKey, localeCodes })
i18n.setLocale = (locale) => loadAndSetLocale(locale)
}
// Set instance options
const vueI18nOptions = typeof vueI18n === 'function' ? vueI18n(context) : vueI18n
vueI18nOptions.componentInstanceCreatedListener = extendVueI18nInstance
app.i18n = new VueI18n(vueI18nOptions)

@@ -203,10 +215,3 @@ // Initialize locale and fallbackLocale as vue-i18n defaults those to 'en-US' if falsey

app.i18n.fallbackLocale = vueI18nOptions.fallbackLocale || ''
app.i18n.locales = locales
app.i18n.defaultLocale = defaultLocale
app.i18n.differentDomains = differentDomains
app.i18n.beforeLanguageSwitch = beforeLanguageSwitch
app.i18n.onLanguageSwitched = onLanguageSwitched
app.i18n.setLocaleCookie = locale => setLocaleCookie(locale, res, { useCookie, cookieDomain, cookieKey })
app.i18n.getLocaleCookie = () => getLocaleCookie(req, { useCookie, cookieKey, localeCodes })
app.i18n.setLocale = (locale) => loadAndSetLocale(locale)
extendVueI18nInstance(app.i18n)
app.i18n.__baseUrl = resolveBaseUrl(baseUrl, context)

@@ -213,0 +218,0 @@ app.i18n.__onNavigate = onNavigate

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