diff --git a/apps/web/components/settings/SecondaryEmailConfirmModal.tsx b/apps/web/components/settings/SecondaryEmailConfirmModal.tsx index 189bb6020e..93145fed8a 100644 --- a/apps/web/components/settings/SecondaryEmailConfirmModal.tsx +++ b/apps/web/components/settings/SecondaryEmailConfirmModal.tsx @@ -1,6 +1,6 @@ +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Dialog, DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog"; -import ServerTrans from "@calcom/web/components/ServerTrans"; interface SecondaryEmailConfirmModalProps { email: string; diff --git a/apps/web/modules/connect-and-join/connect-and-join-view.tsx b/apps/web/modules/connect-and-join/connect-and-join-view.tsx index 2123d8ef15..ca52c97e4f 100644 --- a/apps/web/modules/connect-and-join/connect-and-join-view.tsx +++ b/apps/web/modules/connect-and-join/connect-and-join-view.tsx @@ -12,7 +12,7 @@ import { trpc } from "@calcom/trpc"; import { Alert } from "@calcom/ui/components/alert"; import { Button } from "@calcom/ui/components/button"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { TRPCClientError } from "@trpc/client"; diff --git a/apps/web/modules/signup-view.tsx b/apps/web/modules/signup-view.tsx index 582b3644e4..c354214f51 100644 --- a/apps/web/modules/signup-view.tsx +++ b/apps/web/modules/signup-view.tsx @@ -44,7 +44,7 @@ import { Button } from "@calcom/ui/components/button"; import { PasswordField, CheckboxField, TextField, Form } from "@calcom/ui/components/form"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import type { getServerSideProps } from "@lib/signup/getServerSideProps"; diff --git a/packages/app-store/make/pages/setup/index.tsx b/packages/app-store/make/pages/setup/index.tsx index 4eb737475d..73665f094b 100644 --- a/packages/app-store/make/pages/setup/index.tsx +++ b/packages/app-store/make/pages/setup/index.tsx @@ -10,7 +10,7 @@ import { Button } from "@calcom/ui/components/button"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; import { Tooltip } from "@calcom/ui/components/tooltip"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import type { getServerSideProps } from "./_getServerSideProps"; diff --git a/packages/app-store/zapier/pages/setup/index.tsx b/packages/app-store/zapier/pages/setup/index.tsx index 12798cf44d..73330e4263 100644 --- a/packages/app-store/zapier/pages/setup/index.tsx +++ b/packages/app-store/zapier/pages/setup/index.tsx @@ -9,7 +9,7 @@ import { Button } from "@calcom/ui/components/button"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; import { Tooltip } from "@calcom/ui/components/tooltip"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export interface IZapierSetupProps { inviteLink?: string; diff --git a/packages/emails/src/templates/AdminOrganizationNotificationEmail.tsx b/packages/emails/src/templates/AdminOrganizationNotificationEmail.tsx index bbafb9e8cc..e1bb6c196a 100644 --- a/packages/emails/src/templates/AdminOrganizationNotificationEmail.tsx +++ b/packages/emails/src/templates/AdminOrganizationNotificationEmail.tsx @@ -1,7 +1,7 @@ import type { TFunction } from "i18next"; import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { BaseEmailHtml, CallToAction } from "../components"; diff --git a/packages/emails/src/templates/BrokenIntegrationEmail.tsx b/packages/emails/src/templates/BrokenIntegrationEmail.tsx index cfdbcca8c8..6f81b79a08 100644 --- a/packages/emails/src/templates/BrokenIntegrationEmail.tsx +++ b/packages/emails/src/templates/BrokenIntegrationEmail.tsx @@ -3,7 +3,7 @@ import type { TFunction } from "i18next"; import { AppStoreLocationType } from "@calcom/app-store/locations"; import { WEBAPP_URL } from "@calcom/lib/constants"; import type { CalendarEvent, Person } from "@calcom/types/Calendar"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { BaseScheduledEmail } from "./BaseScheduledEmail"; diff --git a/packages/emails/src/templates/OrganizationAdminNoSlots.tsx b/packages/emails/src/templates/OrganizationAdminNoSlots.tsx index 9770f1f746..7cc8ab6405 100644 --- a/packages/emails/src/templates/OrganizationAdminNoSlots.tsx +++ b/packages/emails/src/templates/OrganizationAdminNoSlots.tsx @@ -1,6 +1,6 @@ import type { TFunction } from "i18next"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { BaseEmailHtml, CallToAction } from "../components"; diff --git a/packages/emails/src/templates/OrganizationCreationEmail.tsx b/packages/emails/src/templates/OrganizationCreationEmail.tsx index b7fe958103..84a8d1549a 100644 --- a/packages/emails/src/templates/OrganizationCreationEmail.tsx +++ b/packages/emails/src/templates/OrganizationCreationEmail.tsx @@ -1,5 +1,5 @@ import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import type { OrganizationCreation } from "../../templates/organization-creation-email"; import { V2BaseEmailHtml } from "../components"; diff --git a/packages/emails/src/templates/SlugReplacementEmail.tsx b/packages/emails/src/templates/SlugReplacementEmail.tsx index f1c65011eb..25ca7877d8 100644 --- a/packages/emails/src/templates/SlugReplacementEmail.tsx +++ b/packages/emails/src/templates/SlugReplacementEmail.tsx @@ -1,7 +1,7 @@ import type { TFunction } from "i18next"; import { WEBAPP_URL } from "@calcom/lib/constants"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { BaseEmailHtml, CallToAction } from "../components"; diff --git a/packages/emails/src/templates/TeamInviteEmail.tsx b/packages/emails/src/templates/TeamInviteEmail.tsx index 2e403a3e0d..4efe172fa7 100644 --- a/packages/emails/src/templates/TeamInviteEmail.tsx +++ b/packages/emails/src/templates/TeamInviteEmail.tsx @@ -1,7 +1,7 @@ import type { TFunction } from "i18next"; import { APP_NAME, WEBAPP_URL, IS_PRODUCTION } from "@calcom/lib/constants"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { getSubject, getTypeOfInvite } from "../../templates/team-invite-email"; import { V2BaseEmailHtml, CallToAction } from "../components"; diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx index 8226b79876..105c0906f4 100644 --- a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx +++ b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx @@ -12,7 +12,7 @@ import { Alert } from "@calcom/ui/components/alert"; import { Button } from "@calcom/ui/components/button"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; import { Form } from "@calcom/ui/components/form"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { useBookerStore } from "../../store"; import type { UseBookingFormReturnType } from "../hooks/useBookingForm"; diff --git a/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx b/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx index 08743a1007..83b09a0239 100644 --- a/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx +++ b/packages/features/bookings/Booker/components/OutOfOfficeInSlots.tsx @@ -5,7 +5,7 @@ import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import classNames from "@calcom/ui/classNames"; import { Button } from "@calcom/ui/components/button"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; interface IOutOfOfficeInSlotsProps { date: string; diff --git a/packages/features/ee/teams/components/MemberInvitationModal.tsx b/packages/features/ee/teams/components/MemberInvitationModal.tsx index 92bdbde216..c5a5e53f7d 100644 --- a/packages/features/ee/teams/components/MemberInvitationModal.tsx +++ b/packages/features/ee/teams/components/MemberInvitationModal.tsx @@ -23,7 +23,7 @@ import { Select } from "@calcom/ui/components/form"; import { ToggleGroup } from "@calcom/ui/components/form"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import type { PendingMember } from "../lib/types"; import { GoogleWorkspaceInviteButton } from "./GoogleWorkspaceInviteButton"; diff --git a/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.tsx b/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.tsx index 24ff64b7cf..e2a3eabdd2 100644 --- a/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.tsx +++ b/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.tsx @@ -23,7 +23,7 @@ import { SheetTitle, } from "@calcom/ui/components/sheet"; import { showToast } from "@calcom/ui/components/toast"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; type TeamMemberItemProps = { member: Omit & { weight?: number }; diff --git a/packages/features/eventtypes/components/Locations.tsx b/packages/features/eventtypes/components/Locations.tsx index f2332072c8..5ed0d056da 100644 --- a/packages/features/eventtypes/components/Locations.tsx +++ b/packages/features/eventtypes/components/Locations.tsx @@ -27,7 +27,7 @@ import { Button } from "@calcom/ui/components/button"; import { Input } from "@calcom/ui/components/form"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export type TEventTypeLocation = Pick; export type TLocationOptions = Pick["locationOptions"]; diff --git a/packages/features/eventtypes/components/WeightDescription.tsx b/packages/features/eventtypes/components/WeightDescription.tsx index 2b1aec5b84..9740dd1575 100644 --- a/packages/features/eventtypes/components/WeightDescription.tsx +++ b/packages/features/eventtypes/components/WeightDescription.tsx @@ -1,7 +1,7 @@ import type { TFunction } from "i18next"; import Link from "next/link"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export default function WeightDescription({ t }: { t: TFunction }) { return ( diff --git a/packages/features/eventtypes/components/dialogs/ManagedEventDialog.tsx b/packages/features/eventtypes/components/dialogs/ManagedEventDialog.tsx index e337507f89..bd52553c7f 100644 --- a/packages/features/eventtypes/components/dialogs/ManagedEventDialog.tsx +++ b/packages/features/eventtypes/components/dialogs/ManagedEventDialog.tsx @@ -1,7 +1,7 @@ import type { ChildrenEventType } from "@calcom/features/eventtypes/components/ChildrenEventTypeSelect"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { ConfirmationDialogContent, Dialog } from "@calcom/ui/components/dialog"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; interface ManagedEventDialogProps { slugExistsChildrenDialogOpen: ChildrenEventType[]; diff --git a/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx b/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx index 785250d8e8..2b5af951cd 100644 --- a/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx +++ b/packages/features/eventtypes/components/tabs/advanced/DisableAllEmailsSetting.tsx @@ -7,7 +7,7 @@ import { Button } from "@calcom/ui/components/button"; import { Dialog, DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog"; import { InputField } from "@calcom/ui/components/form"; import { SettingsToggle } from "@calcom/ui/components/form"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export type EmailNotificationToggleCustomClassNames = SettingsToggleClassNames & { confirmationDialog?: { diff --git a/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx b/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx index d791128ac0..7a539e033b 100644 --- a/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx +++ b/packages/features/eventtypes/components/tabs/advanced/RequiresConfirmationController.tsx @@ -16,7 +16,7 @@ import { CheckboxField } from "@calcom/ui/components/form"; import { Input } from "@calcom/ui/components/form"; import { SettingsToggle } from "@calcom/ui/components/form"; import { RadioField } from "@calcom/ui/components/radio"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export type RequiresConfirmationCustomClassNames = SettingsToggleClassNames & { radioGroupContainer?: string; diff --git a/packages/features/eventtypes/components/tabs/apps/EventAppsTab.tsx b/packages/features/eventtypes/components/tabs/apps/EventAppsTab.tsx index e4074ad581..190fcaf52f 100644 --- a/packages/features/eventtypes/components/tabs/apps/EventAppsTab.tsx +++ b/packages/features/eventtypes/components/tabs/apps/EventAppsTab.tsx @@ -12,7 +12,7 @@ import { trpc } from "@calcom/trpc/react"; import { Alert } from "@calcom/ui/components/alert"; import { Button } from "@calcom/ui/components/button"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export type EventType = Pick["eventType"] & EventTypeAppCardComponentProps["eventType"]; diff --git a/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx b/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx index 2ce396de5f..6eead0bf0f 100644 --- a/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx +++ b/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.tsx @@ -28,7 +28,7 @@ import { Label } from "@calcom/ui/components/form"; import { Select } from "@calcom/ui/components/form"; import { SettingsToggle } from "@calcom/ui/components/form"; import { RadioAreaGroup as RadioArea } from "@calcom/ui/components/radio"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import { EditWeightsForAllTeamMembers } from "../../EditWeightsForAllTeamMembers"; import WeightDescription from "../../WeightDescription"; diff --git a/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.tsx b/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.tsx index 4641521097..af9ceb034d 100644 --- a/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.tsx +++ b/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.tsx @@ -17,7 +17,7 @@ import { Button } from "@calcom/ui/components/button"; import { Dialog, DialogContent } from "@calcom/ui/components/dialog"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; import { showToast } from "@calcom/ui/components/toast"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; export const EventWebhooksTab = ({ eventType }: Pick) => { const { t } = useLocale(); diff --git a/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx b/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx index da9a4af164..865ed77085 100644 --- a/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx +++ b/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.tsx @@ -22,7 +22,7 @@ import { Switch } from "@calcom/ui/components/form"; import { Icon } from "@calcom/ui/components/icon"; import { showToast } from "@calcom/ui/components/toast"; import { Tooltip } from "@calcom/ui/components/tooltip"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; type PartialWorkflowType = Pick; diff --git a/packages/features/settings/BookerLayoutSelector.tsx b/packages/features/settings/BookerLayoutSelector.tsx index 9562fcc1a4..8b4d07265c 100644 --- a/packages/features/settings/BookerLayoutSelector.tsx +++ b/packages/features/settings/BookerLayoutSelector.tsx @@ -11,7 +11,7 @@ import classNames from "@calcom/ui/classNames"; import { Button } from "@calcom/ui/components/button"; import { Label } from "@calcom/ui/components/form"; import { CheckboxField } from "@calcom/ui/components/form"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import SectionBottomActions from "./SectionBottomActions"; diff --git a/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx b/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx index c0e77868b7..a7fe7627fa 100644 --- a/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx +++ b/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx @@ -31,7 +31,7 @@ import { Icon } from "@calcom/ui/components/icon"; import { SkeletonText } from "@calcom/ui/components/skeleton"; import { showToast } from "@calcom/ui/components/toast"; import { Tooltip } from "@calcom/ui/components/tooltip"; -import ServerTrans from "@calcom/web/components/ServerTrans"; +import ServerTrans from "@calcom/lib/components/ServerTrans"; import CreateNewOutOfOfficeEntryButton from "./CreateNewOutOfOfficeEntryButton"; import { CreateOrEditOutOfOfficeEntryModal } from "./CreateOrEditOutOfOfficeModal"; diff --git a/apps/web/components/ServerTrans.tsx b/packages/lib/components/ServerTrans.tsx similarity index 100% rename from apps/web/components/ServerTrans.tsx rename to packages/lib/components/ServerTrans.tsx