Comparing version 1.4.1 to 1.4.2
@@ -36,3 +36,5 @@ 'use strict'; | ||
// make sure to notify vue of changes (this might break with new vue versions) | ||
state.translations.__ob__.dep.notify(); | ||
if (state.translations.__ob__) { | ||
state.translations.__ob__.dep.notify(); | ||
} | ||
}, | ||
@@ -421,3 +423,3 @@ | ||
} else if (objType === 'string') { | ||
return replace(translation, replacements); | ||
return replace(translation, replacements, true); | ||
} | ||
@@ -424,0 +426,0 @@ }; |
@@ -34,3 +34,5 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
// make sure to notify vue of changes (this might break with new vue versions) | ||
state.translations.__ob__.dep.notify(); | ||
if (state.translations.__ob__) { | ||
state.translations.__ob__.dep.notify(); | ||
} | ||
}, | ||
@@ -419,3 +421,3 @@ | ||
} else if (objType === 'string') { | ||
return replace(translation, replacements); | ||
return replace(translation, replacements, true); | ||
} | ||
@@ -422,0 +424,0 @@ }; |
@@ -40,3 +40,5 @@ (function (global, factory) { | ||
// make sure to notify vue of changes (this might break with new vue versions) | ||
state.translations.__ob__.dep.notify(); | ||
if (state.translations.__ob__) { | ||
state.translations.__ob__.dep.notify(); | ||
} | ||
}, | ||
@@ -425,3 +427,3 @@ | ||
} else if (objType === 'string') { | ||
return replace(translation, replacements); | ||
return replace(translation, replacements, true); | ||
} | ||
@@ -428,0 +430,0 @@ }; |
{ | ||
"name": "vuex-i18n", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"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
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
55860
1132