From 8ebe79424d3f2c221d4c378634881353f8e84ab5 Mon Sep 17 00:00:00 2001 From: Rohit Gohri Date: Fri, 8 Mar 2024 01:32:29 +0100 Subject: [PATCH] enable 18n --- website/docusaurus.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index dc8d7d24..fb337909 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -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', @@ -141,6 +150,10 @@ const config: Config = { }, ], }, + { + type: 'localeDropdown', + position: 'right', + }, { href: 'https://github.com/rohit-gohri/redocusaurus', position: 'right',