summaryrefslogtreecommitdiff
path: root/src/components/Navbar.astro
blob: 605ba6860274870c43963928c982a2fa21d162ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
import type Locale from '../types/Locale';
import Breadcrumbs from './Breadcrumbs.astro';
import SwitchLanguageLink from './SwitchLanguageLink.astro';
import tSite from '../i18n/translations/site';
import translate from '../i18n/translate';

interface Props {
  locale: Locale;
}

const { locale } = Astro.props;

const t = translate(locale);
---

<nav>
  <h1 class="logo">
    <a href="/">
      {t(tSite, { key: 'scots-leid-associe' })}
    </a>
  </h1>
  <SwitchLanguageLink currentLocale={locale} />
  <Breadcrumbs />
</nav>