diff --git a/apps/web/app/settings/platform/oauth-clients/[clientId]/edit/webhooks/page.tsx b/apps/web/app/settings/platform/oauth-clients/[clientId]/edit/webhooks/page.tsx index e26b343269..23a36f10ca 100644 --- a/apps/web/app/settings/platform/oauth-clients/[clientId]/edit/webhooks/page.tsx +++ b/apps/web/app/settings/platform/oauth-clients/[clientId]/edit/webhooks/page.tsx @@ -5,7 +5,7 @@ import EditWebhooksView from "~/settings/platform/oauth-clients/[clientId]/edit/ export const generateMetadata = async () => await _generateMetadata( - (t) => t("oAuth_client_updation_form"), + (t) => t("webhook_update_form"), () => "" ); diff --git a/apps/web/app/settings/platform/oauth-clients/create/page.tsx b/apps/web/app/settings/platform/oauth-clients/create/page.tsx index 5303d7dc4a..7550fbe8ef 100644 --- a/apps/web/app/settings/platform/oauth-clients/create/page.tsx +++ b/apps/web/app/settings/platform/oauth-clients/create/page.tsx @@ -1,14 +1,11 @@ -import type { PageProps } from "app/_types"; import { _generateMetadata } from "app/_utils"; import { WithLayout } from "app/layoutHOC"; import CreateNewView from "~/settings/platform/oauth-clients/create-new-view"; -export const generateMetadata = async ({ params, searchParams }: PageProps) => { - const p = { ...params, ...searchParams }; - const clientId = p?.clientId ?? ""; +export const generateMetadata = async () => { return await _generateMetadata( - () => `OAuth client ${!!clientId ? "updation" : "creation"} form`, + (t) => t("oAuth_client_creation_form"), () => "" ); }; diff --git a/apps/web/app/settings/platform/page.tsx b/apps/web/app/settings/platform/page.tsx index e6105fcc58..104d334c6a 100644 --- a/apps/web/app/settings/platform/page.tsx +++ b/apps/web/app/settings/platform/page.tsx @@ -5,8 +5,8 @@ import PlatformView from "~/settings/platform/platform-view"; export const generateMetadata = async () => { return await _generateMetadata( - () => "Platform", - () => "Manage everything related to platform." + (t) => t("platform"), + (t) => t("platform_description") ); }; diff --git a/apps/web/app/settings/platform/plans/page.tsx b/apps/web/app/settings/platform/plans/page.tsx index a6c33b759a..c6e8f8483d 100644 --- a/apps/web/app/settings/platform/plans/page.tsx +++ b/apps/web/app/settings/platform/plans/page.tsx @@ -5,7 +5,7 @@ import PlatformPlansView from "~/settings/platform/plans/platform-plans-view"; export const generateMetadata = async () => { return await _generateMetadata( - () => "Platform plans", + (t) => `${t("platform")} ${t("plans")}`, () => "" ); }; diff --git a/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-view.tsx b/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-view.tsx index ec440afba5..b03399607d 100644 --- a/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-view.tsx +++ b/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-view.tsx @@ -85,10 +85,10 @@ export default function EditOAuthClient() {

- OAuth client updation form + {t("oAuth_client_updation_form")}

- This is the form to edit an existing OAuth client + {t("oAuth_client_updation_form_description")}

diff --git a/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-webhooks-view.tsx b/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-webhooks-view.tsx index 7e782eba0c..b6dca864a9 100644 --- a/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-webhooks-view.tsx +++ b/apps/web/modules/settings/platform/oauth-clients/[clientId]/edit/edit-webhooks-view.tsx @@ -42,14 +42,16 @@ export default function EditOAuthClientWebhooks() { if (isPlatformUser && isPaidUser) { return (
- +

- Webhook update form + {t("webhook_update_form")}

-

Add a webhook to your OAuthClient.

+

+ {t("webhook_update_form_description")} +

diff --git a/apps/web/modules/settings/platform/oauth-clients/create-new-view.tsx b/apps/web/modules/settings/platform/oauth-clients/create-new-view.tsx index 7cedf181d5..33ef295a47 100644 --- a/apps/web/modules/settings/platform/oauth-clients/create-new-view.tsx +++ b/apps/web/modules/settings/platform/oauth-clients/create-new-view.tsx @@ -5,6 +5,7 @@ import { useRouter } from "next/navigation"; import Shell from "@calcom/features/shell/Shell"; import { ErrorCode } from "@calcom/lib/errorCodes"; import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; import { PERMISSIONS_GROUPED_MAP } from "@calcom/platform-constants/permissions"; import { showToast } from "@calcom/ui"; @@ -18,6 +19,7 @@ import { OAuthClientForm } from "@components/settings/platform/oauth-clients/oau export default function CreateOAuthClient() { const searchParams = useCompatSearchParams(); const router = useRouter(); + const { t } = useLocale(); const clientId = searchParams?.get("clientId") || ""; const { isUserLoading, isPlatformUser, isPaidUser } = useGetUserAttributes(); @@ -62,15 +64,15 @@ export default function CreateOAuthClient() { if (isPlatformUser && isPaidUser) { return (
- +

- OAuth client creation form + {t("oAuth_client_creation_form")}

- This is the form to create a new OAuth client + {t("oAuth_client_creation_form_description")}

diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index d7aec12bdf..06eff9133d 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -198,6 +198,8 @@ "webhook_disabled": "Webhook Disabled", "webhook_response": "Webhook response", "webhook_test": "Webhook test", + "webhook_update_form": "Webhook update form", + "webhook_update_form_description": "Add a webhook to your OAuthClient.", "manage_your_webhook": "Manage your webhook", "webhook_created_successfully": "Webhook created successfully!", "webhook_updated_successfully": "Webhook updated successfully!", @@ -2140,6 +2142,7 @@ "set_up_your_organization": "Set up your organization", "set_up_your_platform_organization": "Set up your platform", "organizations_description": "Organizations are shared environments where teams can create shared event types, apps, workflows and more.", + "plans": "Plans", "platform": "Platform", "platform_description": "Manage everything related to platform.", "platform_organization_description": "Cal.com Platform lets you integrate scheduling effortlessly into your app using platform apis and atoms.", @@ -2277,7 +2280,10 @@ "seat_options_doesnt_multiple_durations": "Seat option doesn't support multiple durations", "include_calendar_event": "Include calendar event", "oAuth": "OAuth", + "oAuth_client_creation_form": "OAuth client creation form", + "oAuth_client_creation_form_description": "This is the form to create a new OAuth client", "oAuth_client_updation_form": "OAuth client updation form", + "oAuth_client_updation_form_description": "This is the form to edit an existing OAuth client", "recently_added": "Recently added", "connect_all_calendars": "Connect all your calendars", "connect_all_calendars_description": "{{appName}} reads availability from all your existing calendars.",