diff --git a/src/components/Footer/Footer.astro b/src/components/Footer/Footer.astro index 6b3c98b..d2ce986 100644 --- a/src/components/Footer/Footer.astro +++ b/src/components/Footer/Footer.astro @@ -1,4 +1,6 @@ --- +import getTranslatedContent from "@utils/directus"; +import {getLangFromUrl, getPathForLanguage} from "../../i18n/utils"; import { Github } from "@icons/Github"; import { Instagram } from "@icons/Instagram"; import { Linkedin } from "@icons/Linkedin"; @@ -6,11 +8,10 @@ import { Podcast } from "@icons/Podcast"; import { X } from "@icons/X"; import { Xing } from "@icons/Xing"; import { Inovex } from "@icons/Inovex"; -import getTranslatedContent from "@utils/directus"; import "./Footer.scss"; -const {lang} = Astro.params; -const content = await getTranslatedContent("Footer", lang!); +const lang = getLangFromUrl(Astro.url); +const content = await getTranslatedContent("Footer", lang); ---