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

vuex-i18n

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex-i18n - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

24

dist/vuex-i18n.cjs.js

@@ -33,3 +33,3 @@ 'use strict';

var translations = flattenTranslations(payload.translations);
state.translations[payload.locale] = payload.translations;
state.translations[payload.locale] = translations;

@@ -306,2 +306,8 @@ // make sure to notify vue of changes (this might break with new vue versions)

// we are phasing out the exists function
var phaseOutExistsFn = function phaseOutExistsFn(locale) {
console.warn('$i18n.exists is depreceated. Please use $i18n.localeExists instead. It provides exatly the same functionality.');
return checkLocaleExists(locale);
};
// check if the given locale is already loaded

@@ -319,5 +325,6 @@ var checkLocaleExists = function checkLocaleExists(locale) {

fallback: setFallbackLocale,
exists: checkLocaleExists,
localeExists: checkLocaleExists,
keyExists: checkKeyExists
keyExists: checkKeyExists,
exists: phaseOutExistsFn
};

@@ -332,7 +339,8 @@

fallback: setFallbackLocale,
exists: checkLocaleExists,
translate: translate,
translateIn: translateInLanguage,
localeExists: checkLocaleExists,
keyExists: checkKeyExists,
translate: translate,
translateIn: translateInLanguage
exists: phaseOutExistsFn
};

@@ -413,6 +421,6 @@

return translation.map(function (item) {
return replace(item, replacements, false, identifiers);
return replace(item, replacements, false);
});
} else if (objType === 'string') {
return replace(translation, replacements, true, identifiers);
return replace(translation, replacements);
}

@@ -419,0 +427,0 @@ };

@@ -31,3 +31,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {

var translations = flattenTranslations(payload.translations);
state.translations[payload.locale] = payload.translations;
state.translations[payload.locale] = translations;

@@ -304,2 +304,8 @@ // make sure to notify vue of changes (this might break with new vue versions)

// we are phasing out the exists function
var phaseOutExistsFn = function phaseOutExistsFn(locale) {
console.warn('$i18n.exists is depreceated. Please use $i18n.localeExists instead. It provides exatly the same functionality.');
return checkLocaleExists(locale);
};
// check if the given locale is already loaded

@@ -317,5 +323,6 @@ var checkLocaleExists = function checkLocaleExists(locale) {

fallback: setFallbackLocale,
exists: checkLocaleExists,
localeExists: checkLocaleExists,
keyExists: checkKeyExists
keyExists: checkKeyExists,
exists: phaseOutExistsFn
};

@@ -330,7 +337,8 @@

fallback: setFallbackLocale,
exists: checkLocaleExists,
translate: translate,
translateIn: translateInLanguage,
localeExists: checkLocaleExists,
keyExists: checkKeyExists,
translate: translate,
translateIn: translateInLanguage
exists: phaseOutExistsFn
};

@@ -411,6 +419,6 @@

return translation.map(function (item) {
return replace(item, replacements, false, identifiers);
return replace(item, replacements, false);
});
} else if (objType === 'string') {
return replace(translation, replacements, true, identifiers);
return replace(translation, replacements);
}

@@ -417,0 +425,0 @@ };

@@ -37,3 +37,3 @@ (function (global, factory) {

var translations = flattenTranslations(payload.translations);
state.translations[payload.locale] = payload.translations;
state.translations[payload.locale] = translations;

@@ -310,2 +310,8 @@ // make sure to notify vue of changes (this might break with new vue versions)

// we are phasing out the exists function
var phaseOutExistsFn = function phaseOutExistsFn(locale) {
console.warn('$i18n.exists is depreceated. Please use $i18n.localeExists instead. It provides exatly the same functionality.');
return checkLocaleExists(locale);
};
// check if the given locale is already loaded

@@ -323,5 +329,6 @@ var checkLocaleExists = function checkLocaleExists(locale) {

fallback: setFallbackLocale,
exists: checkLocaleExists,
localeExists: checkLocaleExists,
keyExists: checkKeyExists
keyExists: checkKeyExists,
exists: phaseOutExistsFn
};

@@ -336,7 +343,8 @@

fallback: setFallbackLocale,
exists: checkLocaleExists,
translate: translate,
translateIn: translateInLanguage,
localeExists: checkLocaleExists,
keyExists: checkKeyExists,
translate: translate,
translateIn: translateInLanguage
exists: phaseOutExistsFn
};

@@ -417,6 +425,6 @@

return translation.map(function (item) {
return replace(item, replacements, false, identifiers);
return replace(item, replacements, false);
});
} else if (objType === 'string') {
return replace(translation, replacements, true, identifiers);
return replace(translation, replacements);
}

@@ -423,0 +431,0 @@ };

{
"name": "vuex-i18n",
"version": "1.4.0",
"version": "1.4.1",
"description": "Easy localization for vue-components using vuex as data store",

@@ -5,0 +5,0 @@ "directories": {

Sorry, the diff of this file is not supported yet

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