We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c199ade commit 5ec0680Copy full SHA for 5ec0680
1 file changed
docusaurus.config.js
@@ -62,8 +62,18 @@ const config = {
62
],
63
64
i18n: {
65
- defaultLocale: 'en',
+ defaultLocale: 'zh-CN',
66
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
77
},
78
themeConfig:
79
0 commit comments