Skip to content

Scheduling infrastructure for absolutely everyone.

renamed integratin to app and extracted into common.json (#2951)

Peer Richelsen42c49a826383
diff --git a/apps/console b/apps/console
index 0331484a2d2..c6d8babb4d6 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 a66225dc447..4506c41a1fb 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<unknown>;
}) {
+ const { t } = useLocale();
const [modalOpen, setModalOpen] = useState(false);
const mutation = useMutation(
async () => {
@@ -43,13 +45,13 @@ export default function DisconnectIntegration(props: {
<Dialog open={modalOpen} onOpenChange={setModalOpen}>
<ConfirmationDialogContent
variety="danger"
- title="Disconnect Integration"
- confirmBtnText="Yes, disconnect integration"
+ title={t("remove_app")}
+ confirmBtnText={t("yes_remove_app")}
cancelBtnText="Cancel"
onConfirm={() => {
mutation.mutate();
}}>
- Are you sure you want to disconnect this integration?
+ {t("are_you_sure_you_want_to_remove_this_app")}
</ConfirmationDialogContent>
</Dialog>
{props.render({
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index bbbbe6cd307..b52e81ff47e 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"
}