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

* refactor

* use abort controller

* address comment

* fix tests

* fix time

* fix tests
This commit is contained in:
Benny Joo authored and GitHub committed 2025-08-01 22:30:28 +09:00
1 parent aa618dbaa2
commit 6ff20b98f4
9 files changed
+96 -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;
},
};
});