Skip to content

Commit 5ec0680

Browse files
committed
test
1 parent c199ade commit 5ec0680

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docusaurus.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,18 @@ const config = {
6262
],
6363
],
6464
i18n: {
65-
defaultLocale: 'en',
65+
defaultLocale: 'zh-CN',
6666
locales: ['en', 'zh-CN'],
67+
localeConfigs: {
68+
'zh-CN': {
69+
label: '简体中文',
70+
path: '' // 空字符串表示不需要路径前缀
71+
},
72+
en: {
73+
label: 'English',
74+
path: 'en' // 英文需要 /en/ 路径前缀
75+
}
76+
}
6777
},
6878
themeConfig:
6979

0 commit comments

Comments
 (0)