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:
1 parent
060eafac60
commit
096026b92a
11 files changed
+2854
-587
No files matched your search
@@ -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[],
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user