blob: 62b3b823451624712f69d3f60bc1d3d03df5bb71 (
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 { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
import Button from './Button.astro';
const locale = getLocaleFromPathOrDefault(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>
|