summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Footer.astro')
-rw-r--r--src/components/Footer.astro7
1 files changed, 6 insertions, 1 deletions
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);
---
<footer>
<p class="back-to-top-link">
- <a class="btn" href="#top">▴ Back til tap</a>
+ <a class="btn" href="#top">▴ {t(tSite, { key: 'back-to-top' })}</a>
</p>
</footer>