Localised the status msg as well.

This commit is contained in:
Owaise Imdad
2025-05-21 23:32:07 +05:30
parent 9330f2fb0d
commit 3ddea2ef8b
2 changed files with 8 additions and 9 deletions

View File

@@ -221,13 +221,6 @@ const Configure = () => {
pending: theme.palette.warning.main,
};
const statusMsg = {
paused: "Monitoring is paused.",
up: "Your site is up.",
down: "Your site is down.",
pending: "Pending...",
};
const { determineState } = useMonitorUtils();
const { t } = useTranslation();
@@ -273,7 +266,7 @@ const Configure = () => {
gap={theme.spacing(2)}
>
<Tooltip
title={statusMsg[determineState(monitor)]}
title={t(`statusMsg.${[determineState(monitor)]}`)}
disableInteractive
slotProps={{
popper: {

View File

@@ -539,5 +539,11 @@
"uptimeCreateSelectURL": "Enter the URL or IP to monitor (e.g., https://example.com/ or 192.168.1.100) and add a clear display name that appears on the dashboard.",
"sendTestEmail": "Send test email",
"emailSent": "Email sent successfully",
"failedToSendEmail": "Failed to send email"
"failedToSendEmail": "Failed to send email",
"statusMsg" : {
"paused": "Monitoring is paused.",
"up": "Your site is up.",
"down": "Your site is down.",
"pending": "Pending..."
}
}