Localised the status msg as well.
This commit is contained in:
1 parent
9330f2fb0d
commit
3ddea2ef8b
2 files changed
+8
-9
No files matched your search
@@ -221,13 +221,6 @@ const Configure = () => {
|
|||||||
pending: theme.palette.warning.main,
|
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 { determineState } = useMonitorUtils();
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -273,7 +266,7 @@ const Configure = () => {
|
|||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(2)}
|
||||||
>
|
>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={statusMsg[determineState(monitor)]}
|
title={t(`statusMsg.${[determineState(monitor)]}`)}
|
||||||
disableInteractive
|
disableInteractive
|
||||||
slotProps={{
|
slotProps={{
|
||||||
popper: {
|
popper: {
|
||||||
|
|||||||
@@ -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.",
|
"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",
|
"sendTestEmail": "Send test email",
|
||||||
"emailSent": "Email sent successfully",
|
"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..."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user