diff --git a/components/integrations/CalendarListContainer.tsx b/components/integrations/CalendarListContainer.tsx index 14244690de..cbab1c94b5 100644 --- a/components/integrations/CalendarListContainer.tsx +++ b/components/integrations/CalendarListContainer.tsx @@ -2,6 +2,7 @@ import React, { Fragment } from "react"; import { useMutation } from "react-query"; import { QueryCell } from "@lib/QueryCell"; +import { useLocale } from "@lib/hooks/useLocale"; import showToast from "@lib/notification"; import { trpc } from "@lib/trpc"; @@ -90,6 +91,7 @@ function CalendarSwitch(props: { } function ConnectedCalendarsList(props: Props) { + const { t } = useLocale(); const query = trpc.useQuery(["viewer.connectedCalendars"], { suspense: true }); return ( @@ -109,7 +111,7 @@ function ConnectedCalendarsList(props: Props) { id={item.credentialId} render={(btnProps) => ( )} onOpenChange={props.onChanged} @@ -137,7 +139,7 @@ function ConnectedCalendarsList(props: Props) { id={item.credentialId} render={(btnProps) => ( )} onOpenChange={() => props.onChanged()} @@ -154,6 +156,7 @@ function ConnectedCalendarsList(props: Props) { } function CalendarList(props: Props) { + const { t } = useLocale(); const query = trpc.useQuery(["viewer.integrations"]); return ( @@ -170,7 +173,7 @@ function CalendarList(props: Props) { type={item.type} render={(btnProps) => ( )} onOpenChange={() => props.onChanged()} @@ -184,6 +187,7 @@ function CalendarList(props: Props) { ); } export function CalendarListContainer(props: { heading?: false }) { + const { t } = useLocale(); const { heading = true } = props; const utils = trpc.useContext(); const onChanged = () => @@ -197,21 +201,15 @@ export function CalendarListContainer(props: { heading?: false }) { {heading && ( } - subtitle={ - <> - Configure how your links integrate with your calendars. -
- You can override these settings on a per event basis. - - } + title={} + subtitle={t("configure_how_your_event_types_interact")} /> )} {!!query.data?.length && ( } + title={} /> )} diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index 14171dc2e9..0a2f349990 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -288,7 +288,7 @@ function WebhookListContainer() { Webhooks
Webhooks - Automation + {t("automation")}
)} onOpenChange={handleOpenChange} @@ -455,7 +456,7 @@ function ConnectOrDisconnectIntegrationButton(props: { if (!props.installed) { return (
- +
); } @@ -463,7 +464,7 @@ function ConnectOrDisconnectIntegrationButton(props: { if (props.type === "daily_video") { return (
-

Installed

+

{t("installed")}

); } @@ -472,7 +473,7 @@ function ConnectOrDisconnectIntegrationButton(props: { type={props.type} render={(btnProps) => ( )} onOpenChange={handleOpenChange} @@ -481,8 +482,8 @@ function ConnectOrDisconnectIntegrationButton(props: { } function IntegrationsContainer() { + const { t } = useLocale(); const query = trpc.useQuery(["viewer.integrations"], { suspense: true }); - return ( } @@ -508,7 +509,9 @@ function IntegrationsContainer() { } + title={ + + } /> {data.payment.items.map((item) => ( @@ -525,8 +528,10 @@ function IntegrationsContainer() { } export default function IntegrationsPage() { + const { t } = useLocale(); + return ( - + }> diff --git a/public/static/locales/en/common.json b/public/static/locales/en/common.json index c4528c4e73..8f103ccdaa 100644 --- a/public/static/locales/en/common.json +++ b/public/static/locales/en/common.json @@ -512,5 +512,15 @@ "delete_event_type": "Delete Event Type", "confirm_delete_event_type": "Yes, delete event type", "integrations": "Integrations", - "settings": "Settings" + "settings": "Settings", + "installed": "Installed", + "disconnect": "Disconnect", + "embed_your_calendar": "Embed your calendar within your webpage", + "connect_your_favourite_apps": "Connect your favourite apps.", + "automation": "Automation", + "configure_how_your_event_types_interact": "Configure how your event types should interact with your calendars.", + "connect_an_additional_calendar": "Connect an additional calendar", + "conferencing": "Conferencing", + "calendar": "Calendar", + "not_installed": "Not installed" }