#i18n starlight not working...

10 messages · Page 1 of 1 (latest)

crimson pond
hollow hinge
#

this thread can use some context, if its just i18n breaking in your project, I can suggest looking at Starlight Docs config.

vernal sable
#

Yes, would be good to know more detail about what is not working, expected behaviour etc.

#

Quick glance at the config looks ok, but without a preview or more details it's hard to debug much further.

crimson pond
#

I have looked at the docs and have set up the config correctly but clicking on any page results in a 404

vernal sable
# crimson pond I have looked at the docs and have set up the config correctly but clicking on a...

Still not much to go on, but looking again at your repo, one thing stands out:

  • In your config, you use lowercase paths for the i18n config, e.g. locales: { 'zh-cn': { ... } }
  • In your content, you use uppercase paths for these same directories, e.g. src/content/docs/zh-CN/...
  • These two should match
  • The i18n config and the content also don’t seem to match 100%: config includes pt, but content includes pt-BR/
    Still, I wouldn’t expect 404s I don’t think.
#

But I don’t think it’s i18n related

#

Your sidebar config includes /book/ for almost all links

#

But there is no src/content/book/ so no content for those routes.