From afe775c1b0c8ee5a16dc6d9e817edfe5a9280f2b Mon Sep 17 00:00:00 2001 From: Super User Date: Mon, 18 May 2026 14:18:30 +0200 Subject: [PATCH] ui(chrome): render sidebar item labels via legacy 'name' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The kit's AdminShell resolves DbMenuItem.translationKey via next-intl. gscMy's i18n config has a getMessageFallback that returns the key verbatim when no translation exists, so passing the legacy human-readable name ("Dashboard", "Profile", …) as the translationKey makes the sidebar render correctly without needing new translations. Co-Authored-By: Claude Opus 4.7 (1M context) --- k8s/deployment.yaml | 2 +- src/app/(my)/layout.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 75170a5..f24b2e1 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -31,7 +31,7 @@ spec: spec: containers: - name: my-ui - image: registry.gosec.internal/gsc-my/ui:v0.1.3 + image: registry.gosec.internal/gsc-my/ui:v0.1.4 imagePullPolicy: Always ports: - containerPort: 3000 diff --git a/src/app/(my)/layout.tsx b/src/app/(my)/layout.tsx index b290905..c578e73 100644 --- a/src/app/(my)/layout.tsx +++ b/src/app/(my)/layout.tsx @@ -20,7 +20,7 @@ function toDbMenuItem(item: LegacySidebarItem, order: number): DbMenuItem { return { id: String(item.id), key: item.key, - translationKey: item.key, + translationKey: item.name, url: item.url, icon: item.icon ?? null, sortOrder: order, @@ -30,7 +30,7 @@ function toDbMenuItem(item: LegacySidebarItem, order: number): DbMenuItem { item.submenulvl1?.map((c, i) => ({ id: `${item.id}.${i + 1}`, key: c.key, - translationKey: c.key, + translationKey: c.name, url: c.url, icon: c.icon ?? null, sortOrder: i,