Skip to content

Commit

Permalink
fix: i18n error (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCage authored Jul 8, 2022
1 parent f16ba94 commit 9253df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class App extends React.Component<IProps> {
if (match) {
cookies.set('locale', match[1] === 'EN_US' ? 'EN_US' : 'ZH_CN');
} else {
cookies.set('locale', lang === 'en' ? 'EN_US' : 'ZH_CN');
cookies.set('locale', lang === 'EN_US' ? 'EN_US' : 'ZH_CN');
}
}

Expand All @@ -61,7 +61,7 @@ class App extends React.Component<IProps> {
loadIntlLocale = () => {
intl
.init({
currentLocale: this.currentLocale || 'zh_CN',
currentLocale: this.currentLocale || 'ZH_CN',
locales: INTL_LOCALES,
})
.then(() => {
Expand Down

0 comments on commit 9253df7

Please sign in to comment.