From 64ddc21b6b254b87b17655f55e4c01373f12ba17 Mon Sep 17 00:00:00 2001 From: Clembs Date: Sat, 19 Jul 2025 21:30:41 +0200 Subject: [PATCH] fix: localize footer text --- src/components/Footer.astro | 9 ++++++++- src/i18n/langs/en.ts | 1 + src/i18n/langs/fr.ts | 5 +++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 8be2080..4192f4a 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,3 +1,10 @@ +--- +import { getLangFromUrl, useTranslations } from "@i18n/utils"; + +const lang = getLangFromUrl(Astro.url); +const t = useTranslations(lang); +--- +