My docusaurus project structure:
website
|--docs
|----homepage.md
|--i18n/de/docusaurus-plugin-content-docs/current
|----homepage.md
When I use the language switch I get directed to http://localhost:3000/website/de/docs/homepage/
but I get a "Page not found" error the page. Also when I click on german in the language switch again it will just append another "de" to the url, so the url will then look like .../website/de/de/docs/...
Am I doing something wrong here or is this a docusaurus issue?
You should start your localized site in dev mode, using the locale of your choice by:
npm run start -- --locale de
This is because:
Each locale is a distinct standalone single-page application: it is not possible to start the Docusaurus sites in all locales at the same time.
Ref: https://docusaurus.io/docs/i18n/tutorial#translate-your-site