Skip to content

Commit 33b6efe

Browse files
authored
Merge pull request #177 from OreoYang/main
select ivorysql-how.jpg when i18n.currentLocale !== 'zh-CN'
2 parents 5ae97d0 + aa734c2 commit 33b6efe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const config = {
6262
],
6363
],
6464
i18n: {
65-
defaultLocale: 'zh-CN',
65+
defaultLocale: 'zh',
6666
locales: ['en', 'zh-CN'],
6767
},
6868
themeConfig:

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function HomepageHeader() {
3030
arrows: false,
3131
};
3232
const { i18n } = useDocusaurusContext();
33-
const isEnglish = i18n.currentLocale === 'en';
33+
const isEnglish = i18n.currentLocale !== 'zh-CN';
3434
return (
3535
<div id='main'>
3636
<Slider {...settings}>

0 commit comments

Comments
 (0)