mirror of https://github.com/ElemeFE/element
Locale: compatible vue-i18n, fixed #973
parent
0013043ad7
commit
2241e9f2b4
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue