forked from baron/baron-sso
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
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.");
|
|
});
|
|
});
|