ui(chrome): render sidebar item labels via legacy 'name'

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) <noreply@anthropic.com>
This commit is contained in:
Super User
2026-05-18 14:18:30 +02:00
parent ccf601c178
commit afe775c1b0
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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,