mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 当根据 i18n key 获取不到数据时, fallback 到直接在当前 i18n 对象中获取
This commit is contained in:
parent
bc655223f0
commit
4ab7abcf0a
@ -40,8 +40,7 @@ export function deepValueParser(obj: any, node: Node): any {
|
||||
if (isI18nData(obj)) {
|
||||
// FIXME! use editor.get
|
||||
let locale = Env.getLocale();
|
||||
if (obj.key) {
|
||||
// FIXME: 此处需要升级I18nUtil,改成响应式
|
||||
if (obj.key && i18nUtil.get(obj.key, locale)) {
|
||||
return i18nUtil.get(obj.key, locale);
|
||||
}
|
||||
if (locale !== 'zh_CN' && locale !== 'zh_TW' && !obj[locale]) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user