diff --git a/src/components/SelectLang/index.tsx b/src/components/SelectLang/index.tsx index dc168a53..d173fb6d 100644 --- a/src/components/SelectLang/index.tsx +++ b/src/components/SelectLang/index.tsx @@ -13,7 +13,7 @@ interface SelectLangProps { const SelectLang: React.FC = props => { const { className } = props; const selectedLang = getLocale(); - const changeLang = ({ key }: ClickParam): void => setLocale(key, false); + const changeLang = ({ key }: ClickParam): void => setLocale(key); const locales = ['zh-CN', 'zh-TW', 'en-US', 'pt-BR']; const languageLabels = { 'zh-CN': '简体中文',