blob: a34014ecac3d2633e96b457d0429829a78bc255c (
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 getLocaleFromPath from '$lib/getLocaleFromPath';
import translate from '$i18n/translate';
import tNews from '$i18n/translations/pages/news';
import tFurthsettins from '$i18n/translations/pages/furthsettins';
import tHame from '$i18n/translations/pages/home';
const locale = getLocaleFromPath(Astro.url.pathname);
const t = translate(locale);
---
<ul class="nav__nav-links">
<li>
<a class="btn" href={`/${locale}/news`}>{t(tNews, { key: 'title' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/furthsettins`}>{t(tFurthsettins, { key: 'title' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/#jyne`}>{t(tHame, { key: 'jyne' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/#contact`}>{t(tHame, { key: 'contact' })}</a>
</li>
</ul>
|