From e2e1eff289035b3c4a9597097929968e51ffcaab Mon Sep 17 00:00:00 2001 From: Amol Date: Thu, 3 Jul 2025 01:26:33 +0530 Subject: [PATCH] feat: add language localization and refactor to remove duplicate ternary op --- .../Components/MonitorDetailsControlHeader/index.jsx | 10 +++------- client/src/locales/ar.json | 1 + client/src/locales/cs.json | 1 + client/src/locales/de.json | 1 + client/src/locales/en.json | 1 + client/src/locales/es.json | 1 + client/src/locales/fi.json | 1 + client/src/locales/fr.json | 1 + client/src/locales/pt-BR.json | 1 + client/src/locales/ru.json | 1 + client/src/locales/tr.json | 1 + client/src/locales/zh-TW.json | 1 + 12 files changed, 14 insertions(+), 7 deletions(-) diff --git a/client/src/Components/MonitorDetailsControlHeader/index.jsx b/client/src/Components/MonitorDetailsControlHeader/index.jsx index 67bf10f22..4674a1fb7 100644 --- a/client/src/Components/MonitorDetailsControlHeader/index.jsx +++ b/client/src/Components/MonitorDetailsControlHeader/index.jsx @@ -43,6 +43,8 @@ const MonitorDetailsControlHeader = ({ const isTestNotificationsDisabled = monitor?.notifications?.length === 0; + const tooltipTitle = isTestNotificationsDisabled ? t("testNotificationsDisabled") : ""; + // const [isSending, emailError, sendTestEmail] = useSendTestEmail(); const [testAllNotifications, isSending, errorAllNotifications] = @@ -66,13 +68,7 @@ const MonitorDetailsControlHeader = ({