From 029af1bfab282bb8d00fe1133b0a47e0ed31ea64 Mon Sep 17 00:00:00 2001 From: EyJunge1 <149941075+EyJunge1@users.noreply.github.com> Date: Sat, 10 Oct 2026 12:56:00 +0200 Subject: [PATCH] feat(i18n): add German localization to the web UI --- .../components/explorer/MemoryActions.svelte | 15 +- .../lib/components/ui/pagination-bar.svelte | 6 +- web/src/lib/components/ui/search-input.svelte | 9 +- web/src/lib/format.ts | 3 +- web/src/lib/i18n/translations.ts | 204 ++++++++++++++++++ 5 files changed, 225 insertions(+), 12 deletions(-) diff --git a/web/src/lib/components/explorer/MemoryActions.svelte b/web/src/lib/components/explorer/MemoryActions.svelte index 39395292..48534510 100644 --- a/web/src/lib/components/explorer/MemoryActions.svelte +++ b/web/src/lib/components/explorer/MemoryActions.svelte @@ -4,6 +4,7 @@ import PinOff from "@lucide/svelte/icons/pin-off"; import Trash2 from "@lucide/svelte/icons/trash-2"; import Button from "$lib/components/ui/button.svelte"; + import { useI18n } from "$lib/i18n/context.svelte"; import { ICON_SM } from "$lib/ui/styles"; type Props = { @@ -29,6 +30,8 @@ onEdit, onDelete, }: Props = $props(); + + const i18n = useI18n();
@@ -38,8 +41,8 @@ variant="ghost" size="icon-xs" class="text-primary hover:text-primary" - title="Unpin" - aria-label="Unpin" + title={i18n.t("btn-unpin")} + aria-label={i18n.t("btn-unpin")} onclick={() => onUnpin?.(id)} >