1
0
forked from baron/baron-sso

chore(i18n): sync locales and fix formatting issues

This commit is contained in:
2026-03-03 16:45:44 +09:00
parent badaaa0d1b
commit 1932180cc8
6 changed files with 143 additions and 40 deletions

View File

@@ -105,40 +105,35 @@ const RoleSwitcher: FC = () => {
marginTop: "4px",
}}
>
{(
[
"super_admin",
"tenant_admin",
"rp_admin",
"user",
] as const
).map((role) => (
<button
key={role}
type="button"
onClick={() => switchRole(role)}
style={{
background: currentRole === role ? "#3b82f6" : "#333",
color: "white",
border: "none",
padding: "4px 8px",
borderRadius: "4px",
cursor: "pointer",
textAlign: "left",
transition: "background 0.2s",
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<span>
{roleLabels[role] ?? role.toUpperCase().replace("_", " ")}
</span>
{currentRole === role && (
<span style={{ marginLeft: "8px" }}></span>
)}
</button>
))}
{(["super_admin", "tenant_admin", "rp_admin", "user"] as const).map(
(role) => (
<button
key={role}
type="button"
onClick={() => switchRole(role)}
style={{
background: currentRole === role ? "#3b82f6" : "#333",
color: "white",
border: "none",
padding: "4px 8px",
borderRadius: "4px",
cursor: "pointer",
textAlign: "left",
transition: "background 0.2s",
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<span>
{roleLabels[role] ?? role.toUpperCase().replace("_", " ")}
</span>
{currentRole === role && (
<span style={{ marginLeft: "8px" }}></span>
)}
</button>
),
)}
</div>
)}
</div>

View File

@@ -130,6 +130,44 @@ not_found = "Tenant not found."
remove_sub_confirm = 'Remove tenant "{{name}}" from sub-tenants?'
subtitle = "Subtitle"
[msg.admin.tenants.admins]
add_success = "Admin added successfully."
empty = "No admins registered."
remove_confirm = "Are you sure you want to remove admin permission for {{name}}?"
remove_success = "Admin permission revoked."
subtitle = "Users with permissions to manage this tenant's resources."
title = "Tenant Admin Settings"
[msg.admin.tenants.owners]
add_success = "Owner added successfully."
empty = "No owners registered."
remove_confirm = "Are you sure you want to remove owner permission for {{name}}?"
remove_success = "Owner permission revoked."
subtitle = "List of owners with top-level permissions for this tenant."
[ui.admin.tenants.admins]
add_button = "Add Admin"
already_admin = "Already Admin"
dialog_description = "Search users by name or email to grant admin permissions."
dialog_no_results = "No results found."
dialog_search_hint = "Please enter a search term."
dialog_search_placeholder = "Search users (min 2 chars)..."
dialog_title = "Add New Admin"
remove_title = "Revoke Admin Permission"
table_actions = "Actions"
table_email = "Email"
table_name = "Name"
title = "Tenant Admins"
[ui.admin.tenants.owners]
add_button = "Add Owner"
dialog_description = "Search users by name or email to grant owner permissions."
dialog_title = "Add New Owner"
table_actions = "Actions"
table_email = "Email"
table_name = "Name"
title = "Tenant Owners"
[msg.admin.tenants.create]
subtitle = "Subtitle"

View File

@@ -161,6 +161,13 @@ remove_success = "관리자 권한이 회수되었습니다."
subtitle = "이 테넌트의 자원을 관리할 수 있는 권한을 가진 사용자들입니다."
title = "테넌트 관리자 설정"
[msg.admin.tenants.owners]
add_success = "소유자가 성공적으로 추가되었습니다."
empty = "등록된 소유자가 없습니다."
remove_confirm = "{{name}} 사용자의 소유자 권한을 회수할까요?"
remove_success = "소유자 권한이 회수되었습니다."
subtitle = "이 테넌트의 최상위 권한을 가진 소유자(조직장) 목록입니다."
[ui.admin.tenants.admins]
add_button = "관리자 추가"
already_admin = "이미 관리자"
@@ -175,6 +182,15 @@ table_email = "이메일"
table_name = "이름"
title = "테넌트 관리자"
[ui.admin.tenants.owners]
add_button = "소유자 추가"
dialog_description = "이름 또는 이메일로 사용자를 검색하여 소유자 권한을 부여하세요."
dialog_title = "새 소유자 추가"
table_actions = "액션"
table_email = "이메일"
table_name = "이름"
title = "테넌트 소유자"
[msg.admin.tenants.create]
subtitle = "글로벌 운영 기준의 신규 테넌트를 등록합니다."