diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Footer.astro | 7 |
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> |
