fix: designer i18n locale is not correct

This commit is contained in:
jn 2023-02-09 20:37:21 +08:00 committed by 林熠
parent a4c93c43b9
commit 6753bf660b

View File

@ -830,7 +830,7 @@ export default function baseRendererFactory(): IBaseRenderComponent {
}
}
const handleI18nData = (innerProps: any) => innerProps[innerProps.use || 'zh-CN'];
const handleI18nData = (innerProps: any) => innerProps[innerProps.use || (this.getLocale && this.getLocale()) || 'zh-CN'];
// @LEGACY 兼容老平台设计态 i18n 数据
if (isI18nData(props)) {