mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-07 18:29:41 -06:00
Localised the status msg as well.
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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..."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user