-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Hey there, I'm trying i18n for my portafolio and I have a different base on my defineConfig so when I try to get deploy this on gh-pages I get no text or when I switch from "en" to "es" I get a 404 that redirect me to "/"
// astro.config.mjs
import { defineConfig } from "astro/config";
import liciousI18n from "@astrolicious/i18n";
export default defineConfig({
integrations: [
liciousI18n({
defaultLocale: "en",
locales: ["en", "es"],
client: {
data: true,
},
}),
],
site: "https://andresmpa.github.io/",
base: "/portafolio/", /* <--- THIS */
});If I make something like there's no any translation
// LocaleSwitcher.astro
onchange="location = '/portafolio' + this.value;"When base is "/" It works
export default defineConfig({
/* */
base: "/portafolio/", /* <--- THIS */
});Of course the switcher has to be something like this
// LocaleSwitcher.astro
onchange="location = this.value;"Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed