blob: 36c7f6fd0ed2919a3f186d8c2944b9989895c376 (
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
26
27
28
29
|
---
import { getLocaleFromPathOrDefault } 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';
import tJyne from '$i18n/translations/pages/jyne';
const locale = getLocaleFromPathOrDefault(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}/#about`}>{t(tHame, { key: 'about-us' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/furthsettins`}>{t(tFurthsettins, { key: 'title' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/jyne`}>{t(tJyne, { key: 'title' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/#contact`}>{t(tHame, { key: 'contact' })}</a>
</li>
</ul>
|