From 7ec49f16a3c8f76dcbe1a12edb50e23096ae27ff Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Fri, 18 Aug 2023 18:38:21 +0100 Subject: Localises back to top link --- src/components/Footer.astro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/components/Footer.astro') diff --git a/src/components/Footer.astro b/src/components/Footer.astro index a346877..c636c8d 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,9 +1,14 @@ --- +import translate from '$i18n/translate'; +import tSite from '$i18n/translations/site'; +import getLocaleFromPath from '$lib/getLocaleFromPath'; +const locale = getLocaleFromPath(Astro.url.pathname); +const t = translate(locale); --- -- cgit v1.2.3