fix(i18n): localize application workflows

Use stable checklist and interview keys for system copy while preserving user-authored content. Localize creation-tab errors, language selectors, match bands, dates, and selected-CV context.
This commit is contained in:
cesnimda
2026-08-29 16:51:59 +02:00
parent 9edcbfc5de
commit a704c75440
11 changed files with 173 additions and 37 deletions
+15 -1
View File
@@ -57,7 +57,21 @@ function routeGet(overrides: Record<string, any> = {}) {
});
}
beforeEach(() => jest.clearAllMocks());
beforeEach(() => {
jest.clearAllMocks();
window.localStorage.setItem("uiLanguage", "en");
});
test("localizes interview categories while preserving user-authored preparation", async () => {
window.localStorage.setItem("uiLanguage", "nb");
routeGet();
render(<ApplicationInterviewPrep jobId={7} />);
expect((await screen.findAllByText("Selskapsresearch")).length).toBeGreaterThan(0);
expect(screen.getAllByText("Atferdsbaserte spørsmål").length).toBeGreaterThan(0);
expect(screen.getByText("Funding history")).toBeInTheDocument();
});
test("prep renders grouped items with progress and marks AI-sourced ones", async () => {
routeGet();