From 15c09ecc36f9e423f2fa8cabfcb02c516ce9cfb3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 14:33:14 +0200 Subject: [PATCH] fix(AppShell): drop t("menu.account") fallback, use email instead The fallback for users without a displayName was hitting next-intl's MISSING_MESSAGE error when the consumer didn't ship a `menu.account` key. Default to the user's email (or empty string) instead of a translation key the chrome can't guarantee. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/layout/AppShell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/AppShell.tsx b/src/layout/AppShell.tsx index 0afbdf8..28ad39a 100644 --- a/src/layout/AppShell.tsx +++ b/src/layout/AppShell.tsx @@ -154,7 +154,7 @@ export function AppShell({ aria-expanded="false" > - {config.user.displayName || t("menu.account")} + {config.user.displayName || config.user.email || ""}