From 42c49a826383275dd5f8320608665e424a28403d Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Fri, 3 Jun 2022 16:57:50 +0200 Subject: [PATCH] renamed integratin to app and extracted into common.json (#2951) --- apps/console | 2 +- .../web/components/integrations/DisconnectIntegration.tsx | 8 +++++--- apps/web/public/static/locales/en/common.json | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/console b/apps/console index 0331484a2d..c6d8babb4d 160000 --- a/apps/console +++ b/apps/console @@ -1 +1 @@ -Subproject commit 0331484a2d276e1c385266fed17e82737df6f103 +Subproject commit c6d8babb4d6810f06f2869e89cda286b3e0402c9 diff --git a/apps/web/components/integrations/DisconnectIntegration.tsx b/apps/web/components/integrations/DisconnectIntegration.tsx index a66225dc44..4506c41a1f 100644 --- a/apps/web/components/integrations/DisconnectIntegration.tsx +++ b/apps/web/components/integrations/DisconnectIntegration.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { useMutation } from "react-query"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; import showToast from "@calcom/lib/notification"; import { ButtonBaseProps } from "@calcom/ui/Button"; import { Dialog } from "@calcom/ui/Dialog"; @@ -13,6 +14,7 @@ export default function DisconnectIntegration(props: { render: (renderProps: ButtonBaseProps) => JSX.Element; onOpenChange: (isOpen: boolean) => unknown | Promise; }) { + const { t } = useLocale(); const [modalOpen, setModalOpen] = useState(false); const mutation = useMutation( async () => { @@ -43,13 +45,13 @@ export default function DisconnectIntegration(props: { { mutation.mutate(); }}> - Are you sure you want to disconnect this integration? + {t("are_you_sure_you_want_to_remove_this_app")} {props.render({ diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index bbbbe6cd30..b52e81ff47 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -883,5 +883,8 @@ "meeting_url_in_conformation_email": "Meeting url is in the confirmation email", "url_start_with_https": "URL needs to start with http:// or https://", "number_provided": "Phone number will be provided", + "remove_app": "Remove App", + "yes_remove_app": "Yes, remove app", + "are_you_sure_you_want_to_remove_this_app": "Are you sure you want to remove this app?", "web_conference": "Web conference" }