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) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-05-10 14:33:14 +02:00
parent 8b9e577694
commit 15c09ecc36

View File

@@ -154,7 +154,7 @@ export function AppShell({
aria-expanded="false"
>
<span className="d-none d-md-inline me-2">
{config.user.displayName || t("menu.account")}
{config.user.displayName || config.user.email || ""}
</span>
<i className="ph-user-circle" />
</button>