diff options
Diffstat (limited to 'src/components/Navbar/Logo.astro')
| -rw-r--r-- | src/components/Navbar/Logo.astro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/Navbar/Logo.astro b/src/components/Navbar/Logo.astro new file mode 100644 index 0000000..58bf01d --- /dev/null +++ b/src/components/Navbar/Logo.astro @@ -0,0 +1,14 @@ +--- +import translate from '$i18n/translate'; +import getLocaleFromPath from '$lib/getLocaleFromPath'; +import tSite from '$i18n/translations/site'; + +const locale = getLocaleFromPath(Astro.url.pathname); +const t = translate(locale); +--- + +<p class="title--small nav__logo"> + <a href="/"> + {t(tSite, { key: 'scots-leid-associe' })} + </a> +</p> |
