Browse Source

KERNEL-14316 chore:i18n有问题

es6
Treecat 2 years ago
parent
commit
e4adbb74eb
  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) { export function i18nText(key) {
const i18n = i18nStore || _global?.BI?.i18n || {}; const globalI18nStore = _global?.BI?.i18n || {};
let localeText = i18n[key] || ""; let localeText = i18nStore[key] || globalI18nStore[key] || "";
if (!localeText) { if (!localeText) {
localeText = key; localeText = key;
} }

Loading…
Cancel
Save