#Help with `astro-18next` routing

2 messages · Page 1 of 1 (latest)

hybrid sand
#

Hello!

I am currently building an Astro website for the first time using astro-i18next, and here is my astro-i18next.config.mjs:

/** @type {import('astro-i18next').AstroI18nextConfig} */
export default {
    defaultLocale: "en",
    locales: ["en", "he", "bg", "es"],
};

My problem is that pages in the default language (English) are at /, but I want them to be at /en/. How do I make it so?

I want pages in / to automatically redirect to the correct languages based on cookies, then locale, then fall back to the default locale.

#

Yeah I did it by just removing the defaultLocale