没传入 locale 不更新 env

This commit is contained in:
2betop 2020-06-03 15:02:04 +08:00
parent fd988819c6
commit 7356c023c0

View File

@ -979,8 +979,11 @@ export function render(
const env = getEnv(store);
const theme = props.theme || options.theme || 'default';
env.theme = getTheme(theme);
env.translate = translate;
env.locale = locale;
if (props.locale !== undefined) {
env.translate = translate;
env.locale = locale;
}
return (
<ScopedRootRenderer