From 70ea2105b2191e89335948c9259d2d5996b3a701 Mon Sep 17 00:00:00 2001 From: mohadeseh safari Date: Mon, 12 May 2025 21:17:06 -0400 Subject: [PATCH] Cancel button --- client/src/Components/Dialog/index.jsx | 4 +++- client/src/locales/gb.json | 1 + client/src/locales/ru.json | 1 + client/src/locales/tr.json | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/Components/Dialog/index.jsx b/client/src/Components/Dialog/index.jsx index 3f4f16f05..e07597df4 100644 --- a/client/src/Components/Dialog/index.jsx +++ b/client/src/Components/Dialog/index.jsx @@ -2,6 +2,7 @@ import PropTypes from "prop-types"; import { Button, Stack } from "@mui/material"; import { GenericDialog } from "./genericDialog"; import { useTheme } from "@emotion/react"; +import { useTranslation } from "react-i18next"; const Dialog = ({ title, @@ -13,6 +14,7 @@ const Dialog = ({ isLoading, }) => { const theme = useTheme(); + const { t } = useTranslation(); return ( - Cancel + {t("cancel", "Cancel")}