summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
blob: f1ee19c580321cf88cceb9a7e21c321b4d6beddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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">
    <a class="btn" href="#top">▴ {t(tSite, { key: 'back-to-top' })}</a>
  </p>
</footer>