|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|