feat(i18n): localize public landing

This commit is contained in:
cesnimda
2026-08-29 22:30:08 +02:00
parent e9f8653d19
commit 464ba7f4d9
6 changed files with 217 additions and 54 deletions
@@ -5,6 +5,7 @@ import userEvent from "@testing-library/user-event";
import { MemoryRouter, Route, Routes, useLocation } from "react-router-dom";
import { api } from "./api";
import LandingPage from "./views/LandingPage";
import { I18nProvider } from "./i18n/I18nProvider";
jest.mock("./api", () => ({
api: {
@@ -33,7 +34,7 @@ describe("LandingPage forwards deep-link intent to /login", () => {
render(
<MemoryRouter initialEntries={[{ pathname: "/", state: { from: "/jobs/42" } }]}>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/" element={<I18nProvider><LandingPage /></I18nProvider>} />
<Route path="/login" element={<LoginStub />} />
</Routes>
</MemoryRouter>,