|
@@ -12,7 +12,10 @@ export const t = function(path, options) {
|
|
|
if (typeof vuei18n === 'function') {
|
|
|
if (!merged) {
|
|
|
merged = true;
|
|
|
- Vue.locale(Vue.config.lang, deepmerge(lang, Vue.locale(Vue.config.lang), { clone: true }));
|
|
|
+ Vue.locale(
|
|
|
+ Vue.config.lang,
|
|
|
+ deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true })
|
|
|
+ );
|
|
|
}
|
|
|
return vuei18n.apply(this, [path, options]);
|
|
|
}
|