From f1f777ff823b9cf2f4a33cb6ec157696f8e62e82 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 24 Feb 2025 20:37:51 +0100 Subject: [PATCH] fix(frontend): localize footer --- .../src/lib/components/Footer.svelte | 21 ++++++++++--------- .../src/lib/i18n/locales/en.json | 12 +++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/Foxnouns.Frontend/src/lib/components/Footer.svelte b/Foxnouns.Frontend/src/lib/components/Footer.svelte index 6fd6564..857c07c 100644 --- a/Foxnouns.Frontend/src/lib/components/Footer.svelte +++ b/Foxnouns.Frontend/src/lib/components/Footer.svelte @@ -8,6 +8,7 @@ import Envelope from "svelte-bootstrap-icons/lib/Envelope.svelte"; import CashCoin from "svelte-bootstrap-icons/lib/CashCoin.svelte"; import Logo from "./Logo.svelte"; + import { t } from "$lib/i18n"; type Props = { meta: Meta }; let { meta }: Props = $props(); @@ -18,13 +19,13 @@
    -
  • Version {meta.version}
  • +
  • {$t("footer.version")} {meta.version}
@@ -36,7 +37,7 @@ >
  • - Source code + {$t("footer.source")}
  • - Status + {$t("footer.status")}
  • - About and contact + {$t("footer.about-contact")}
  • - Terms of service + {$t("footer.terms")}
  • - Privacy policy + {$t("footer.privacy")}
  • - Changelog + {$t("footer.changelog")}
  • - Donate + {$t("footer.donate")}
  • diff --git a/Foxnouns.Frontend/src/lib/i18n/locales/en.json b/Foxnouns.Frontend/src/lib/i18n/locales/en.json index 1c15a83..7f2b2ab 100644 --- a/Foxnouns.Frontend/src/lib/i18n/locales/en.json +++ b/Foxnouns.Frontend/src/lib/i18n/locales/en.json @@ -327,5 +327,17 @@ "alert": { "auth-method-remove-success": "Successfully unlinked account!", "auth-required": "You must log in to access this page." + }, + "footer": { + "version": "Version", + "users": "users", + "members": "members", + "source": "Source code", + "status": "Status", + "terms": "Terms of service", + "privacy": "Privacy policy", + "changelog": "Changelog", + "donate": "Donate", + "about-contact": "About and contact" } }