Browse Source

Pull request #3511: KERNEL-14316 chore:i18n有问题

Merge in VISUAL/fineui from ~TREECAT/fineui:es6 to es6

* commit 'ddd79cb5c8b45325b183e61ca75c05ad3138e3b0':
  KERNEL-14316 chore:i18n有问题
es6
treecat-罗群 2 years ago
parent
commit
5b0babaf98
  1. 4
      packages/fineui/src/core/utils/i18n.js

4
packages/fineui/src/core/utils/i18n.js

@ -15,8 +15,8 @@ export function addI18n(i18n) {
}
export function i18nText(key) {
const i18n = i18nStore || _global?.BI?.i18n || {};
let localeText = i18n[key] || "";
const globalI18nStore = _global?.BI?.i18n || {};
let localeText = i18nStore[key] || globalI18nStore[key] || "";
if (!localeText) {
localeText = key;
}

Loading…
Cancel
Save