forked from baron/baron-sso
devfront 설정 화면 로케일 누락 수정
This commit is contained in:
29
devfront/src/lib/i18n.test.ts
Normal file
29
devfront/src/lib/i18n.test.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { t } from "./i18n";
|
||||
|
||||
afterEach(() => {
|
||||
window.localStorage.clear();
|
||||
});
|
||||
|
||||
describe("i18n", () => {
|
||||
it("returns English copy for the developer request and grants screens", () => {
|
||||
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("ui.dev.grants.form.title", "직접 부여")).toBe("Direct Grant");
|
||||
expect(
|
||||
t(
|
||||
"msg.dev.grants.form.description",
|
||||
"사용자를 선택하면 현재 소속 정보가 표시되고, 그 사용자에게 개발자 권한을 즉시 부여합니다.",
|
||||
),
|
||||
).toBe(
|
||||
"Select a user to view their current tenant, email, and phone, then grant developer access immediately.",
|
||||
);
|
||||
expect(
|
||||
t("msg.dev.grants.list.description", "현재 부여된 개발자 권한 목록입니다."),
|
||||
).toBe("Current developer access grants.");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user