Skip to content

Scheduling infrastructure for absolutely everyone.

fix: replace `useTranslation` with `useLocale` in `AppCard` component (#23379)

Yadong (Adam) Zhangd9443162ef70
diff --git a/packages/app-store/_components/AppCard.tsx b/packages/app-store/_components/AppCard.tsx
index 3033a1bd8d2..27784c3c9d5 100644
--- a/packages/app-store/_components/AppCard.tsx
+++ b/packages/app-store/_components/AppCard.tsx
@@ -1,9 +1,9 @@
import { useAutoAnimate } from "@formkit/auto-animate/react";
import Link from "next/link";
-import { useTranslation } from "react-i18next";
import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext";
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
+import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { RouterOutputs } from "@calcom/trpc/react";
import classNames from "@calcom/ui/classNames";
import { Button } from "@calcom/ui/components/button";
@@ -42,7 +42,7 @@ export default function AppCard({
hideSettingsIcon?: boolean;
hideAppCardOptions?: boolean;
}) {
- const { t } = useTranslation();
+ const { t } = useLocale();
const [animationRef] = useAutoAnimate<HTMLDivElement>();
const { setAppData, LockedIcon, disabled: managedDisabled } = useAppContextWithSchema();
const isPlatform = useIsPlatform();