summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
blob: 262a487547f9d95d326a7edf59158b9d3d2515ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
import translate from '$i18n/translate';
import tSite from '$i18n/translations/site';
import getLocaleFromPath from '$lib/getLocaleFromPath';
import Button from './Button.astro';

const locale = getLocaleFromPath(Astro.url.pathname);
const t = translate(locale);
---

<footer>
  <Button layoutClasses="grid-span-3 grid-end" href="#top">
    ▲ {t(tSite, { key: 'back-to-top' })}
  </Button>
</footer>