Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ const config: Config = {
// Has to be set even if not using translations
i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en', 'cn'],
localeConfigs: {
en: {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
},
cn: {
label: '简体中文',
direction: 'ltr',
htmlLang: 'zh-CN',
},
},
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
Expand Down Expand Up @@ -163,6 +175,10 @@ const config: Config = {
},
],
},
{
type: 'localeDropdown',
position: 'right',
},
{
type: 'search',
position: 'right',
Expand Down
Loading