doc: fix site error

pull/5879/head
tangjinzhou 2 years ago
parent 1d6a8916cc
commit fa53e89e51

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

Loading…
Cancel
Save