diff --git a/src/Pages/Maintenance/CreateMaintenance/index.jsx b/src/Pages/Maintenance/CreateMaintenance/index.jsx
index abc31361a..33e17a300 100644
--- a/src/Pages/Maintenance/CreateMaintenance/index.jsx
+++ b/src/Pages/Maintenance/CreateMaintenance/index.jsx
@@ -28,6 +28,7 @@ import {
} from "../../../Utils/timeUtils";
import { useNavigate, useParams } from "react-router-dom";
import { buildErrors, hasValidationErrors } from "../../../Validation/error";
+import { useTranslation } from "react-i18next";
const getDurationAndUnit = (durationInMs) => {
if (durationInMs % MS_PER_DAY === 0) {
@@ -113,6 +114,7 @@ const CreateMaintenance = () => {
const { maintenanceWindowId } = useParams();
const navigate = useNavigate();
const theme = useTheme();
+ const { t } = useTranslation();
const { user } = useSelector((state) => state.auth);
const [monitors, setMonitors] = useState([]);
const [search, setSearch] = useState("");
@@ -293,7 +295,7 @@ const CreateMaintenance = () => {
component="span"
fontSize="inherit"
>
- {`${maintenanceWindowId === undefined ? "Create a" : "Edit"}`}{" "}
+ {`${maintenanceWindowId === undefined ? t("createA") : t("edit")}`}{" "}
{
fontSize="inherit"
fontWeight="inherit"
>
- maintenance{" "}
+ {t("maintenance")}{" "}
- window
+ {t("window")}
{
variant="body2"
fontSize={14}
>
- Your pings won't be sent during this time frame
+ {t("maintenanceWindowDescription")}
@@ -324,14 +326,14 @@ const CreateMaintenance = () => {
component="h2"
variant="h2"
>
- General Settings
+ {t("settingsGeneralSettings")}
{
handleFormChange("name", event.target.value);
@@ -342,7 +344,7 @@ const CreateMaintenance = () => {
@@ -284,12 +286,12 @@ const PageSpeedConfigure = () => {
{monitor?.isActive ? (
<>
- Pause
+ {t("pause")}
>
) : (
<>
- Resume
+ {t("resume")}
>
)}
@@ -302,16 +304,15 @@ const PageSpeedConfigure = () => {
ml: theme.spacing(6),
}}
>
- Remove
+ {t("remove")}
- General settings
+ {t("settingsGeneralSettings")}
- Here you can select the URL of the host, together with the type of
- monitor.
+ {t("pageSpeedConfigureSettingsDescription")}
{
{
{
- Incident notifications
+ {t("distributedUptimeCreateIncidentNotification")}
- When there is an incident, notify users.
+ {t("distributedUptimeCreateIncidentDescription")}
- When there is a new incident,
+ {t("whenNewIncident")}
logger.warn("disabled")}
@@ -376,7 +377,7 @@ const PageSpeedConfigure = () => {
/>
logger.warn("disabled")}
@@ -394,7 +395,7 @@ const PageSpeedConfigure = () => {
onChange={() => logger.warn("disabled")}
/>
- You can separate multiple emails with a comma
+ {t("seperateEmails")}
) : (
@@ -404,12 +405,12 @@ const PageSpeedConfigure = () => {
- Advanced settings
+ {t("distributedUptimeCreateAdvancedSettings")}
@@ -438,8 +439,8 @@ const PageSpeedConfigure = () => {