Skip to content

Scheduling infrastructure for absolutely everyone.

perf: Remove next-i18next dependency from packages/emails and packages/lib (#23531)

Benny Joof4b23b3a0333
diff --git a/packages/emails/package.json b/packages/emails/package.json
index 1031261fe18..02332841fa2 100644
--- a/packages/emails/package.json
+++ b/packages/emails/package.json
@@ -9,7 +9,6 @@
"dependencies": {
"@calcom/dayjs": "*",
"@calcom/lib": "*",
- "next-i18next": "^15.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rrule": "^2.7.1"
diff --git a/packages/emails/src/templates/CreditBalanceLimitReachedEmail.tsx b/packages/emails/src/templates/CreditBalanceLimitReachedEmail.tsx
index 9ff9c0b1af0..23353747987 100644
--- a/packages/emails/src/templates/CreditBalanceLimitReachedEmail.tsx
+++ b/packages/emails/src/templates/CreditBalanceLimitReachedEmail.tsx
@@ -1,4 +1,4 @@
-import type { TFunction } from "next-i18next";
+import type { TFunction } from "i18next";
import { WEBAPP_URL } from "@calcom/lib/constants";
diff --git a/packages/emails/src/templates/CreditBalanceLowWarningEmail.tsx b/packages/emails/src/templates/CreditBalanceLowWarningEmail.tsx
index d544f8e54c7..35f75108b97 100644
--- a/packages/emails/src/templates/CreditBalanceLowWarningEmail.tsx
+++ b/packages/emails/src/templates/CreditBalanceLowWarningEmail.tsx
@@ -1,4 +1,4 @@
-import type { TFunction } from "next-i18next";
+import type { TFunction } from "i18next";
import { WEBAPP_URL } from "@calcom/lib/constants";
diff --git a/packages/features/CalendarEventBuilder.test.ts b/packages/features/CalendarEventBuilder.test.ts
index 11dabc362e3..47f59c5f8a4 100644
--- a/packages/features/CalendarEventBuilder.test.ts
+++ b/packages/features/CalendarEventBuilder.test.ts
@@ -1,4 +1,4 @@
-import type { TFunction } from "next-i18next";
+import type { TFunction } from "i18next";
import { describe, expect, it, vi } from "vitest";
import dayjs from "@calcom/dayjs";
diff --git a/packages/features/CalendarEventBuilder.ts b/packages/features/CalendarEventBuilder.ts
index 570829ec990..82ec2800827 100644
--- a/packages/features/CalendarEventBuilder.ts
+++ b/packages/features/CalendarEventBuilder.ts
@@ -1,5 +1,5 @@
import type { Prisma } from "@prisma/client";
-import type { TFunction } from "next-i18next";
+import type { TFunction } from "i18next";
import type { TimeFormat } from "@calcom/lib/timeFormat";
import type { SchedulingType } from "@calcom/prisma/enums";
diff --git a/packages/lib/package.json b/packages/lib/package.json
index 83f6bb9d0a9..46d584a7db2 100644
--- a/packages/lib/package.json
+++ b/packages/lib/package.json
@@ -24,7 +24,6 @@
"jimp": "^0.16.1",
"lingo.dev": "^0.111.1",
"next-collect": "^0.2.1",
- "next-i18next": "^15.4.2",
"rrule": "^2.7.1",
"sharp": "0.33.5",
"sonner": "^1.7.4",