Skip to content

Commit

Permalink
fix: 修复rutimeLocale默认语言设置不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SummerOverture committed Jan 4, 2021
1 parent abc0c43 commit 66f42ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/components/Config/Locale/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export function getRuntimeLocale(componentName) {
// 部分组件如Modal 可以通过函数式调用 所以需要runtimeLocale提供支撑
export function changeRuntimeLocale(LocaleValue?: LocaleProperties) {
if (!LocaleValue || !LocaleValue.locale) {
runtimeLocale = zh_CN;
runtimeLocale = zh_CN;
} else {
runtimeLocale = LocaleValue;
}
runtimeLocale = LocaleValue;
};

export default (props: {
Expand Down

0 comments on commit 66f42ca

Please sign in to comment.