1
0
forked from baron/baron-sso

공용 i18n namespace 정리

This commit is contained in:
2026-05-19 17:47:41 +09:00
parent c2dbc8fc88
commit fc4a2f3536
9 changed files with 175 additions and 25 deletions

View File

@@ -336,8 +336,8 @@ function AppLayout() {
auth.user?.profile?.preferred_username?.toString() ||
auth.user?.profile?.nickname?.toString(),
profileEmail: profile?.email || auth.user?.profile?.email?.toString(),
fallbackName: t("ui.dev.profile.unknown_name", "Unknown User"),
fallbackEmail: t("ui.dev.profile.unknown_email", "unknown@example.com"),
fallbackName: t("ui.shell.profile.unknown_name", "Unknown User"),
fallbackEmail: t("ui.shell.profile.unknown_email", "unknown@example.com"),
});
const currentRole = resolveProfileRole(
auth.user?.profile as Record<string, unknown> | undefined,
@@ -380,7 +380,7 @@ function AppLayout() {
className={shellLayoutClasses.logoutButton}
>
<LogOut size={18} />
<span>{t("ui.dev.nav.logout", "Logout")}</span>
<span>{t("ui.shell.nav.logout", "Logout")}</span>
</button>
</div>
);
@@ -433,7 +433,7 @@ function AppLayout() {
aria-haspopup="menu"
aria-expanded={isProfileMenuOpen}
aria-label={t(
"ui.dev.profile.menu_aria",
"ui.shell.profile.menu_aria",
"Open account menu",
)}
>
@@ -456,7 +456,7 @@ function AppLayout() {
{isProfileMenuOpen ? (
<div role="menu" className={shellLayoutClasses.profileMenu}>
<p className="text-xs uppercase tracking-[0.16em] text-muted-foreground">
{t("ui.dev.profile.menu_title", "Account")}
{t("ui.shell.profile.menu_title", "Account")}
</p>
<div className={shellLayoutClasses.profileCard}>
<div>
@@ -470,7 +470,7 @@ function AppLayout() {
<div className="flex items-center pt-1">
<span className="inline-flex items-center rounded-full bg-sky-500/10 px-2.5 py-1 text-[10px] font-semibold text-sky-700 dark:text-sky-300">
{t(
`ui.admin.role.${displayRoleKey}`,
`ui.shell.role.${displayRoleKey}`,
displayRoleKey.toUpperCase(),
)}
</span>
@@ -481,7 +481,7 @@ function AppLayout() {
<div className="flex items-center justify-between gap-3">
<div>
<p className="text-sm font-medium text-foreground">
{t("ui.dev.session.auto_extend", "Session expiry")}
{t("ui.shell.session.auto_extend", "Session expiry")}
</p>
<p className="text-xs text-muted-foreground">
{isSessionExpiryEnabled ? (
@@ -491,7 +491,7 @@ function AppLayout() {
/>
) : (
t(
"ui.dev.session.disabled",
"ui.shell.session.disabled",
"Session expiry disabled",
)
)}
@@ -529,7 +529,7 @@ function AppLayout() {
}}
>
<UserIcon size={16} className="text-muted-foreground" />
<span>{t("ui.dev.profile.title", "My Profile")}</span>
<span>{t("ui.shell.nav.profile", "My Profile")}</span>
</button>
<button
type="button"
@@ -538,7 +538,7 @@ function AppLayout() {
onClick={handleLogout}
>
<LogOut size={16} />
<span>{t("ui.dev.nav.logout", "Logout")}</span>
<span>{t("ui.shell.nav.logout", "Logout")}</span>
</button>
</div>
) : null}