summaryrefslogtreecommitdiff
path: root/src/components/Navbar/Logo.astro
blob: dc87d19031fb9a5957e4ff42e1628db09dd2eaf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
import translate from '$i18n/translate';
import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
import tSite from '$i18n/translations/site';

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

<p class="nav__logo">
  <a href="/">
    {t(tSite, { key: 'scots-leid-associe' })}
  </a>
</p>