From 144deab1b6067f59a56ae36c333f3097d08056ef Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:29:02 +0100 Subject: Adds Logo to Navbar --- src/components/Navbar.astro | 9 +++++++++ src/i18n/translations/site.ts | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 80829d3..1ce0749 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -2,15 +2,24 @@ 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); --- diff --git a/src/i18n/translations/site.ts b/src/i18n/translations/site.ts index 66c95cd..25598f1 100644 --- a/src/i18n/translations/site.ts +++ b/src/i18n/translations/site.ts @@ -14,6 +14,10 @@ const siteTranslations = { sco: () => 'Lallans', 'en-GB': () => 'Lallans', }, + 'scots-leid-associe': { + sco: () => 'Scots Leid Associe', + 'en-GB': () => 'Scots Language Society', + }, by: { sco: () => 'bi', 'en-GB': () => 'by', -- cgit v1.2.3