fix: Vitest is being bundled to client + bump lingo.dev version (#23502)

* Fix vitest on prod

* Also extract out verify-email for the purpose of stopping test bundling

* Address NIT

* Fix lingo.dev imports

---------

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Volnei MunhozandAlex van Andel authored and GitHub committed 2025-09-02 01:58:08 +01:00
1 parent 060eafac60
commit 096026b92a
11 files changed
+2854 -587

No files matched your search

+1
View File
@@ -22,6 +22,7 @@
"ical.js": "^1.4.0",
"ics": "^2.37.0",
"jimp": "^0.16.1",
"lingo.dev": "^0.111.1",
"next-collect": "^0.2.1",
"next-i18next": "^15.4.2",
"rrule": "^2.7.1",
+2 -1
View File
@@ -1,5 +1,5 @@
import { LingoDotDevEngine } from "@lingo.dev/_sdk";
import type { LocaleCode } from "@lingo.dev/_spec";
import { LingoDotDevEngine } from "lingo.dev/sdk";
import { LINGO_DOT_DEV_API_KEY } from "@calcom/lib/constants";
import logger from "@calcom/lib/logger";
@@ -52,6 +52,7 @@ export class LingoDotDevService {
): Promise<string[]> {
try {
const result = await this.engine.batchLocalizeText(text, {
// TODO: LocaleCode is hacky, use our locale mapping instead.
sourceLocale: sourceLocale as LocaleCode,
targetLocales: targetLocales as LocaleCode[],
});
+1 -2
View File
@@ -57,8 +57,7 @@
"./components/unpublished-entity": "./components/unpublished-entity/index.ts",
"./components/table/TableNew": "./components/table/TableNew.tsx",
"./components/app-list-card/AppListCard": "./components/app-list-card/AppListCard.tsx",
"./components/section": "./components/section/index.ts",
"./__mocks__/ui": "./__mocks__/ui.tsx"
"./components/section": "./components/section/index.ts"
},
"license": "MIT",
"scripts": {