From f4b23b3a03334b4b9206ede5999d9e8c9fe07c18 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Wed, 3 Sep 2025 08:36:50 -0400 Subject: [PATCH] perf: Remove next-i18next dependency from packages/emails and packages/lib (#23531) * refactor: Remove type imports from next-i18next package * remove next-i18next from packages/lib * remove next-i18next from packages/emails --- packages/emails/package.json | 1 - .../emails/src/templates/CreditBalanceLimitReachedEmail.tsx | 2 +- packages/emails/src/templates/CreditBalanceLowWarningEmail.tsx | 2 +- packages/features/CalendarEventBuilder.test.ts | 2 +- packages/features/CalendarEventBuilder.ts | 2 +- packages/lib/package.json | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/emails/package.json b/packages/emails/package.json index 1031261fe1..02332841fa 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 9ff9c0b1af..2335374798 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 d544f8e54c..35f75108b9 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 11dabc362e..47f59c5f8a 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 570829ec99..82ec280082 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 83f6bb9d0a..46d584a7db 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",