Page not found after adding i18n #11207
Unanswered
yolpsoftware
asked this question in
Q&A
Replies: 2 comments 3 replies
-
By the way, if you use the language switcher at https://docusaurus.io/docs/i18n/tutorial, strange things happen.. |
Beta Was this translation helpful? Give feedback.
1 reply
-
When you start your website, you only start it for a single locale at a time, because each site is a separate, standalone app in practice. This is documented here: https://docusaurus.io/docs/i18n/tutorial#start-your-site When running |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Having trouble getting the i18n in Docusaurus to run. No matter what I tried on my own repository, I'm always getting a Page not Found error when accessing a page in a "foreign language". It seems that if you use the language switcher to go from English to German, then the language switcher will keep showing English as the selected language - so the
/de/...
URL seems to be routed to an English page which of course does not exist.Here's my reproduction with a new Docusaurus instance:
npx create-docusaurus@latest website classic
, then select Typescriptcd website
npm start
locales: ['en', 'de']
and a{ type: 'localeDropdown', position: 'right' }
to the configNow the website shows the same "Page not found" error I'm also getting in my own repository.
write-translations
and other Docusaurus tools, and I let Cursor / Claude try to figure it out for more than an hour, but we were always stuck at the same "Page not found".If this is a bug, I'm happy to write an issue, but it just seemed to be too basic to be a bug, so I'm rather expecting some pretty dumb thing I have missed when setting it up.
Beta Was this translation helpful? Give feedback.
All reactions