Skip to content

Commit

Permalink
add a language switcher (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
hide212131 authored Nov 6, 2024
1 parent 38cabf9 commit 59432ae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ const config: Config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en', 'jp'],
localeConfigs: {
en: {
label: 'English',
},
jp: {
label: '日本語',
},
},
},

presets: [
Expand Down Expand Up @@ -136,6 +144,10 @@ const config: Config = {
label: 'JDL Studio',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
prism: {
Expand Down

0 comments on commit 59432ae

Please sign in to comment.