blob: 798c24ef54d04c508fbfb9d332c3db38ad80d9ba (
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
|
---
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';
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(tHame, { key: 'jyne' })}</a>
</li>
<li>
<a class="btn" href={`/${locale}/#contact`}>{t(tHame, { key: 'contact' })}</a>
</li>
</ul>
|