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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user