blob: 45cf96bef973086c68b8c150a5b68b1384cbf139 (
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>
<p class="title--small logo">
<a href="/">
{t(tSite, { key: 'scots-leid-associe' })}
</a>
</p>
<SwitchLanguageLink currentLocale={locale} />
<Breadcrumbs />
</nav>
|