mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-05 20:58:12 +08:00
fix: vxe i18n
This commit is contained in:
parent
a7576f6971
commit
0bba4b7d64
@ -66,6 +66,13 @@ VXETable.setup({
|
||||
return unref(i18n.global.locale) === "zh"
|
||||
? XEUtils.toFormatString(XEUtils.get(zh, key), args)
|
||||
: XEUtils.toFormatString(XEUtils.get(en, key), args);
|
||||
},
|
||||
translate(key) {
|
||||
const NAMESPACED = ["el.", "buttons."];
|
||||
if (key && NAMESPACED.findIndex(v => key.includes(v)) !== -1) {
|
||||
return i18n.global.t.call(i18n.global.locale, key);
|
||||
}
|
||||
return key;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user