Localization second batch (#2410)

* Localization second batch

* update test

* fix tests

* Fix test
This commit is contained in:
sunghyunkang1111
2026-03-05 12:05:45 -06:00
committed by GitHub
parent c343bad630
commit 77132be3b3
11 changed files with 320 additions and 159 deletions
+5
View File
@@ -4,9 +4,14 @@ import Adapter from "enzyme-adapter-react-16";
import "jest-canvas-mock";
import enableHooks from "jest-react-hooks-shallow";
import { TextDecoder, TextEncoder } from "util";
import i18n from "./i18n";
import enResources from "./Localization/en/Resources.json";
configure({ adapter: new Adapter() });
initializeIcons();
// Load English translations synchronously so t() returns real values in tests
i18n.addResourceBundle("en", "Resources", enResources, true, true);
if (typeof window.URL.createObjectURL === "undefined") {
Object.defineProperty(window.URL, "createObjectURL", { value: () => {} });
}