[#525] adopted twake-i18n (#404)

* [#525] adopted twake-i18n 

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-12-09 11:10:44 +01:00
committed by GitHub
parent a5093f3fc4
commit 2f2ee369fc
34 changed files with 932 additions and 7354 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import {
DateTimeFields,
} from "../../src/components/Event/components/DateTimeFields";
jest.mock("cozy-ui/transpiled/react/providers/I18n", () => ({
jest.mock("twake-i18n", () => ({
useI18n: () => ({
t: (key: string) => key,
lang: "en",
+1 -1
View File
@@ -1,9 +1,9 @@
import type { RenderOptions } from "@testing-library/react";
import { render } from "@testing-library/react";
import { I18nContext } from "cozy-ui/transpiled/react/providers/I18n";
import React, { PropsWithChildren } from "react";
import { Provider } from "react-redux";
import { MemoryRouter } from "react-router-dom";
import { I18nContext } from "twake-i18n";
import type { AppStore, RootState } from "../../src/app/store";
import { setupStore } from "../../src/app/store";
interface ExtendedRenderOptions extends Omit<RenderOptions, "queries"> {