From fb27fbf3b1c6a6930bcf5185ca46cbdfee0f0550 Mon Sep 17 00:00:00 2001 From: kyy Date: Mon, 16 Mar 2026 16:43:25 +0900 Subject: [PATCH] =?UTF-8?q?i18n=20=EB=88=84=EB=9D=BD=20=ED=82=A4=20?= =?UTF-8?q?=EB=B3=B4=EC=99=84=20=EB=B0=8F=20biome=20=ED=8F=AC=EB=A7=B7=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devfront/src/components/layout/AppLayout.tsx | 16 ++++++--- devfront/src/features/profile/ProfilePage.tsx | 33 ++++++++++++++----- devfront/src/lib/role.ts | 4 ++- .../tests/devfront-role-switch-report.spec.ts | 16 ++++++--- locales/en.toml | 25 ++++++++++++++ locales/ko.toml | 25 ++++++++++++++ locales/template.toml | 25 ++++++++++++++ 7 files changed, 126 insertions(+), 18 deletions(-) diff --git a/devfront/src/components/layout/AppLayout.tsx b/devfront/src/components/layout/AppLayout.tsx index cdb98dcb..64ed2759 100644 --- a/devfront/src/components/layout/AppLayout.tsx +++ b/devfront/src/components/layout/AppLayout.tsx @@ -111,7 +111,7 @@ function AppLayout() { const currentRole = resolveProfileRole( auth.user?.profile as Record | undefined, ); - + // Use profile.role from API if available, otherwise fallback to local role const displayRoleKey = profile?.role || currentRole; @@ -331,12 +331,18 @@ function AppLayout() {

- - {t(`ui.common.role.${displayRoleKey}`, displayRoleKey.toUpperCase())} + + {t( + `ui.common.role.${displayRoleKey}`, + displayRoleKey.toUpperCase(), + )}
- + - +