1
0
forked from baron/baron-sso

로케일 누락 키 추가 및 lint 수정

This commit is contained in:
2026-06-16 15:41:39 +09:00
parent 79bf1c3496
commit 4b2d9c89b3
8 changed files with 43 additions and 28 deletions

View File

@@ -16,10 +16,7 @@ type TenantAccessPickerProps = {
};
function resolveOrgFrontBaseUrl() {
return (
import.meta.env.ORGFRONT_URL ||
"http://localhost:5175"
);
return import.meta.env.ORGFRONT_URL || "http://localhost:5175";
}
export function TenantAccessPicker({

View File

@@ -43,9 +43,7 @@ describe("developer access pages", () => {
window.localStorage.setItem("locale", "en");
expect(getDeveloperAccessPageLabel("client_create")).toBe(
"Add linked app",
);
expect(getDeveloperAccessPageLabel("client_create")).toBe("Add linked app");
expect(developerAccessPagesToLabel(["overview", "audit"])).toBe(
"Overview, Audit Logs",
);

View File

@@ -96,10 +96,7 @@ function getRecentClientFieldLabel(key: string) {
"클라이언트 시크릿",
);
case "id_token_claims":
return t(
"ui.dev.clients.general.id_token_claims.title",
"Custom Claims",
);
return t("ui.dev.clients.general.id_token_claims.title", "Custom Claims");
default:
return key;
}
@@ -159,11 +156,7 @@ function formatIdTokenClaimChangeSummary(
const afterValueType =
typeof afterValue.valueType === "string" ? afterValue.valueType : null;
if (
beforeValueType &&
afterValueType &&
beforeValueType !== afterValueType
) {
if (beforeValueType && afterValueType && beforeValueType !== afterValueType) {
return `~ ${beforeDisplayName}: ${beforeValueType}${afterValueType}`;
}
@@ -317,7 +310,9 @@ export function buildRecentClientChangeDetails(
}
if (action !== "CREATE_CLIENT" && action !== "DELETE_CLIENT") {
if (auditValueSignature(beforeValue) === auditValueSignature(afterValue)) {
if (
auditValueSignature(beforeValue) === auditValueSignature(afterValue)
) {
return null;
}
}

View File

@@ -10,9 +10,13 @@ describe("i18n", () => {
window.localStorage.setItem("locale", "en");
expect(t("ui.dev.request.list.title", "신청 내역")).toBe("Request History");
expect(t("msg.dev.request.list.approved_count", "총 {{count}}명의 사용자가 승인되었습니다.", { count: 0 })).toBe(
"0 users have been approved.",
);
expect(
t(
"msg.dev.request.list.approved_count",
"총 {{count}}명의 사용자가 승인되었습니다.",
{ count: 0 },
),
).toBe("0 users have been approved.");
expect(t("ui.dev.grants.form.title", "직접 부여")).toBe("Direct Grant");
expect(
t(
@@ -23,7 +27,10 @@ describe("i18n", () => {
"Select a user to view their current tenant, email, and phone, then grant developer access immediately.",
);
expect(
t("msg.dev.grants.list.description", "현재 부여된 개발자 권한 목록입니다."),
t(
"msg.dev.grants.list.description",
"현재 부여된 개발자 권한 목록입니다.",
),
).toBe("Current developer access grants.");
});
});

View File

@@ -2687,6 +2687,12 @@ title = "Direct Grant"
[ui.dev.grants.list]
title = "Granted Access"
[ui.dev.access_pages]
all = "All"
overview = "Overview"
client_create = "Add linked app"
audit = "Audit Logs"
[ui.dev.header]
plane = "Dev Plane"
subtitle = "Manage your applications"

View File

@@ -2687,6 +2687,12 @@ title = "직접 부여"
[ui.dev.grants.list]
title = "부여된 권한"
[ui.dev.access_pages]
all = "전체"
overview = "개요"
client_create = "연동 앱 추가"
audit = "감사로그"
[ui.dev.header]
plane = "Dev Plane"
subtitle = "Manage your applications"

View File

@@ -2687,6 +2687,12 @@ title = ""
[ui.dev.grants.list]
title = ""
[ui.dev.access_pages]
all = ""
overview = ""
client_create = ""
audit = ""
[ui.dev.header]
plane = ""
subtitle = ""