Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,13 @@
"teams_of": "{teamCount} teams of {playersPerTeam}",
"teams_title": "Teams"
},
"multi_tab": {
"detected": "Multiple open game tabs detected.",
"explanation": "To ensure fair play, only one active game tab is permitted at a time.",
"please_wait": "Please wait",
"seconds": "seconds",
"warning": "Vigilant Mode Warning"
},
"new_lobby_prompt": {
"confirm": "Start a new lobby? All players will be invited to join.",
"dismiss": "Dismiss",
Expand Down
19 changes: 19 additions & 0 deletions tests/client/MultiTabModal.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import fs from "fs";
import path from "path";
import { describe, expect, it } from "vitest";

const EN_JSON = path.join(__dirname, "..", "..", "resources", "lang", "en.json");

describe("multi_tab translations", () => {
it("includes all multi_tab modal translation keys in en.json", () => {
const en = JSON.parse(fs.readFileSync(EN_JSON, "utf8"));
expect(en.multi_tab).toBeDefined();
expect(en.multi_tab.warning).toBe("Vigilant Mode Warning");
expect(en.multi_tab.detected).toBe("Multiple open game tabs detected.");
expect(en.multi_tab.please_wait).toBe("Please wait");
expect(en.multi_tab.seconds).toBe("seconds");
expect(en.multi_tab.explanation).toBe(
"To ensure fair play, only one active game tab is permitted at a time.",
);
});
});
Loading