doc: fix site error
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…
Reference in New Issue