1
0
forked from baron/baron-sso

i18n 누락 키 보완 및 biome 포맷 정리

This commit is contained in:
2026-03-16 16:43:25 +09:00
parent 9a4681b2c0
commit fb27fbf3b1
7 changed files with 126 additions and 18 deletions

View File

@@ -111,7 +111,7 @@ function AppLayout() {
const currentRole = resolveProfileRole(
auth.user?.profile as Record<string, unknown> | undefined,
);
// Use profile.role from API if available, otherwise fallback to local role
const displayRoleKey = profile?.role || currentRole;
@@ -331,12 +331,18 @@ function AppLayout() {
</p>
</div>
<div className="flex items-center pt-1">
<Badge variant="outline" className="text-[10px] px-2 py-0">
{t(`ui.common.role.${displayRoleKey}`, displayRoleKey.toUpperCase())}
<Badge
variant="outline"
className="text-[10px] px-2 py-0"
>
{t(
`ui.common.role.${displayRoleKey}`,
displayRoleKey.toUpperCase(),
)}
</Badge>
</div>
</div>
<button
type="button"
role="menuitem"
@@ -349,7 +355,7 @@ function AppLayout() {
<UserIcon size={16} className="text-muted-foreground" />
<span>{t("ui.dev.profile.title", "내 정보")}</span>
</button>
<button
type="button"
role="menuitem"