From 082f477adf3ebbd60bc3b87aaed37a7050e3ced8 Mon Sep 17 00:00:00 2001 From: shanghaitao <359310444@qq.com> Date: Mon, 6 May 2019 14:13:43 +0800 Subject: [PATCH] chore: determineLocale only from cookie --- src/containers/shared/App/IntlWrapper.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/containers/shared/App/IntlWrapper.tsx b/src/containers/shared/App/IntlWrapper.tsx index 9ed4191..8dd7ccd 100644 --- a/src/containers/shared/App/IntlWrapper.tsx +++ b/src/containers/shared/App/IntlWrapper.tsx @@ -37,10 +37,7 @@ export default class IntlWrapper extends React.Component { } loadLocales() { - let currentLocale = intl.determineLocale({ - urlLocaleKey: 'lang', - cookieLocaleKey: 'lang' - }) + let currentLocale = intl.determineLocale({ cookieLocaleKey: COOKIE_KEYS.LANG }) // default is English if (!find(SUPPOER_LOCALES, { value: currentLocale })) { currentLocale = LOCALES.EN_US