fix: website Header SearchBar locale issue (#31134)

This commit is contained in:
wwwxy 2021-06-25 15:11:23 +08:00 committed by GitHub
parent af94f3f537
commit e4b3a7c0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ class Header extends React.Component<HeaderProps, HeaderState> {
router.listen(this.handleHideMenu);
initDocSearch({
isZhCN: intl.locale === 'zh',
isZhCN: intl.locale === 'zh-CN',
router,
});