feat: add language localization and refactor to remove duplicate ternary op

This commit is contained in:
Amol
2025-07-03 01:26:33 +05:30
parent 0e8a71c760
commit e2e1eff289
12 changed files with 14 additions and 7 deletions
@@ -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 = ({
<Tooltip
key={monitor?._id}
placement="bottom"
title={
isTestNotificationsDisabled
? t(
'There are no notifications setup for this monitor. You need to add one by clicking "Configure" button'
)
: ""
}
title={tooltipTitle}
>
<span>
<Button
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -826,6 +826,7 @@
"teamMembers": "Team members"
},
"testLocale": "testLocale",
"testNotificationsDisabled": "There are no notifications setup for this monitor. You need to add one by clicking 'Configure' button",
"timeZoneInfo": "All dates and times are in GMT+0 time zone.",
"timezone": "Timezone",
"title": "Title",
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "Bildirimleri dene",
"testNotificationsDisabled": "",
"selectAll": "Tümünü seç",
"showAdminLoginLink": "",
"logsPage": {
+1
View File
@@ -690,6 +690,7 @@
},
"advancedMatching": "",
"sendTestNotifications": "",
"testNotificationsDisabled": "",
"selectAll": "",
"showAdminLoginLink": "",
"logsPage": {