-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: designer i18n locale is not correct #1552
Conversation
CLA麻烦签一下 |
@JackLian 请问下 1.0.18 版本的 fix 提交哪个分支呢 |
|
哦,好的 |
this.getLocale 可能不是一个 function,需要做一下判断并处理。 |
@@ -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']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.getLocale && this.getLocale()用括号括起来吧, 像这样
innerProps[innerProps.use || (this.getLocale && this.getLocale()) || 'zh-CN'];
No description provided.