#I need help with getting translations working.

11 messages · Page 1 of 1 (latest)

proper swallow
#

Description: I am trying to get translations up and running but I am running into a few problems. I tried to deploy on a service like Netlify to preview my website but I keep getting a 404 page not found error no matter what. This also happens in a local environment as well so, it is not a Netlify issue.

I have followed the instructions on the docs to try get translations working but, that did not work.

The astro.config.mjs file: https://github.com/Imzxhir/SideStore-Docs/blob/main/astro.config.mjs

Website deployed on Netlify: https://sidestore-docs.netlify.app

The build and logs look all fine with no issues found except for the error in this screenshot which I am not sure how to fix:

wind wraithBOT
#
No-one around right now?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

wheat ridge
#

as it is the english content is being served on /en

#

but first you need to fix one minor detail: the folder structure is reversed, should be /docs/en

proper swallow
#

For a root locale, doesn't the site not need to be in a /en directory?

proper swallow
wheat ridge
#

config roughly the same as the startlight docs

defaultLocale: "root",
      locales: {
        root: {
          label: "English",
          lang: "en",
        },
        us: {
          label: "French",
          lang: "fr",
        },
#

if you want a folder specific to /en but serve in / I believe it's no possible right now If I understand correctly this discssion herE: #starlight message