fix: refactor i18n loadTranslations and set timeout to 3s (#22878)

* refactor

* use abort controller

* address comment

* fix tests

* fix time

* fix tests

* fix platform library build
This commit is contained in:
Benny Joo authored and GitHub committed 2025-08-04 10:30:18 +01:00
1 parent 18059e50fa
commit 4061bfb3fe
9 files changed
+97 -53

No files matched your search

@@ -26,7 +26,12 @@ vi.mock("@calcom/emails/email-manager", () => {
vi.mock("@calcom/lib/server/i18n", () => {
return {
getTranslation: (key: string) => key,
getTranslation: async (locale: string, namespace: string) => {
const t = (key: string) => key;
t.locale = locale;
t.namespace = namespace;
return t;
},
};
});