Skip to content

Commit

Permalink
enable 18n
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed Mar 8, 2024
1 parent 4dc0db0 commit 8ebe794
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ const config: Config = {
},
] satisfies Redocusaurus.PresetEntry,
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'de'],
localeConfigs: {
en: {
htmlLang: 'en-GB',
},
},
},
themeConfig: {
navbar: {
title: 'Redocusaurus',
Expand Down Expand Up @@ -141,6 +150,10 @@ const config: Config = {
},
],
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/rohit-gohri/redocusaurus',
position: 'right',
Expand Down

0 comments on commit 8ebe794

Please sign in to comment.