doc: fix site error

pull/5879/head
tangjinzhou 2022-08-08 10:13:51 +08:00
parent 1d6a8916cc
commit fa53e89e51
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import zhCN from './locale/zh-CN';
import { isZhCN } from './utils/util';
const i18n = createI18n({
legacy: true,
legacy: false,
locale: isZhCN(location.pathname) ? 'zh-CN' : 'en-US',
fallbackLocale: 'en-US',
messages: {