Skip to content

Commit

Permalink
chore: determineLocale only from cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
jackple committed May 6, 2019
1 parent 99ff757 commit 082f477
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/containers/shared/App/IntlWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 082f477

Please sign in to comment.