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:
@@ -31,7 +31,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: my-ui
|
- 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
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function toDbMenuItem(item: LegacySidebarItem, order: number): DbMenuItem {
|
|||||||
return {
|
return {
|
||||||
id: String(item.id),
|
id: String(item.id),
|
||||||
key: item.key,
|
key: item.key,
|
||||||
translationKey: item.key,
|
translationKey: item.name,
|
||||||
url: item.url,
|
url: item.url,
|
||||||
icon: item.icon ?? null,
|
icon: item.icon ?? null,
|
||||||
sortOrder: order,
|
sortOrder: order,
|
||||||
@@ -30,7 +30,7 @@ function toDbMenuItem(item: LegacySidebarItem, order: number): DbMenuItem {
|
|||||||
item.submenulvl1?.map((c, i) => ({
|
item.submenulvl1?.map((c, i) => ({
|
||||||
id: `${item.id}.${i + 1}`,
|
id: `${item.id}.${i + 1}`,
|
||||||
key: c.key,
|
key: c.key,
|
||||||
translationKey: c.key,
|
translationKey: c.name,
|
||||||
url: c.url,
|
url: c.url,
|
||||||
icon: c.icon ?? null,
|
icon: c.icon ?? null,
|
||||||
sortOrder: i,
|
sortOrder: i,
|
||||||
|
|||||||
Reference in New Issue
Block a user