|
- COUNTRY
+ {t("country")}
|
- CITY
+ {t("city")}
|
- RESPONSE
+ {t("response")}
|
{"UPT BURNED"}
@@ -74,7 +76,7 @@ const DeviceTicker = ({ data, width = "100%", connectionStatus }) => {
{city}
|
- {Math.floor(dataPoint.responseTime)} ms
+ {Math.floor(dataPoint.responseTime)} {t("ms")}
|
diff --git a/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Helpers/ToolTip.jsx b/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Helpers/ToolTip.jsx
index 064678897..737b26106 100644
--- a/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Helpers/ToolTip.jsx
+++ b/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/Helpers/ToolTip.jsx
@@ -4,9 +4,12 @@ import { formatDateWithTz } from "../../../../../../Utils/timeUtils";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import AccessTimeIcon from "@mui/icons-material/AccessTime";
+import { useTranslation } from "react-i18next";
+
const CustomToolTip = ({ active, payload, label }) => {
const uiTimezone = useSelector((state) => state.ui.timezone);
const theme = useTheme();
+ const { t } = useTranslation();
if (active && payload && payload.length) {
const responseTime = payload[0]?.payload?.originalAvgResponseTime
? payload[0]?.payload?.originalAvgResponseTime
@@ -51,7 +54,7 @@ const CustomToolTip = ({ active, payload, label }) => {
component="span"
sx={{ opacity: 0.8 }}
>
- Response time:
+ {t("responseTime")}
{Math.floor(responseTime)}
@@ -59,7 +62,7 @@ const CustomToolTip = ({ active, payload, label }) => {
component="span"
sx={{ opacity: 0.8 }}
>
- ms
+ {t("ms")}
diff --git a/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/index.jsx b/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/index.jsx
index 88beb258d..90a7671db 100644
--- a/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/index.jsx
+++ b/src/Pages/DistributedUptime/Details/Components/DistributedUptimeResponseChart/index.jsx
@@ -8,8 +8,11 @@ import ResponseTimeIcon from "../../../../../assets/icons/response-time-icon.svg
// Utils
import PropTypes from "prop-types";
+import { useTranslation } from "react-i18next";
+
const DistributedUptimeResponseChart = ({ checks }) => {
const [chartType, setChartType] = useState("bar");
+ const { t } = useTranslation();
let Chart = null;
if (chartType === "area") {
Chart = DistributedUptimeResponseAreaChart;
@@ -23,13 +26,13 @@ const DistributedUptimeResponseChart = ({ checks }) => {
direction="row"
alignItems="center"
>
- Bar
+ {t("bar")}
setChartType(e.target.checked ? "area" : "bar")}
/>
- Area
+ {t("area")}
}
diff --git a/src/Pages/DistributedUptime/Details/Components/Footer/index.jsx b/src/Pages/DistributedUptime/Details/Components/Footer/index.jsx
index 8032b6527..62a1f465a 100644
--- a/src/Pages/DistributedUptime/Details/Components/Footer/index.jsx
+++ b/src/Pages/DistributedUptime/Details/Components/Footer/index.jsx
@@ -1,15 +1,18 @@
import { Stack, Typography, Box } from "@mui/material";
import SolanaLogo from "../../../../../assets/icons/solana_logo.svg?react";
import { useTheme } from "@mui/material/styles";
+import { useTranslation } from "react-i18next";
+
const Footer = () => {
const theme = useTheme();
+ const { t } = useTranslation();
return (
- Made with ❤️ by UpRock & Bluewave Labs
+ {t("distributedUptimeDetailsFooterHeading")}
{
justifyContent="center"
alignItems="center"
>
- Built on
+ {t("distributedUptimeDetailsFooterBuilt")}
- Solana
+ {t("distributedUptimeDetailsFooterSolana")}
);
diff --git a/src/Pages/DistributedUptime/Details/Components/MonitorHeader/index.jsx b/src/Pages/DistributedUptime/Details/Components/MonitorHeader/index.jsx
index 53f36542f..9e2c4e87e 100644
--- a/src/Pages/DistributedUptime/Details/Components/MonitorHeader/index.jsx
+++ b/src/Pages/DistributedUptime/Details/Components/MonitorHeader/index.jsx
@@ -1,15 +1,17 @@
import { Stack, Typography } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import PropTypes from "prop-types";
+import { useTranslation } from "react-i18next";
const MonitorHeader = ({ monitor }) => {
const theme = useTheme();
+ const { t } = useTranslation();
return (
{monitor.name}
- Distributed Uptime Monitoring powered by DePIN
+ {t("distributedUptimeDetailsMonitorHeader")}
diff --git a/src/Pages/DistributedUptime/Details/Components/StatusHeader/index.jsx b/src/Pages/DistributedUptime/Details/Components/StatusHeader/index.jsx
index 316427cec..8f188c970 100644
--- a/src/Pages/DistributedUptime/Details/Components/StatusHeader/index.jsx
+++ b/src/Pages/DistributedUptime/Details/Components/StatusHeader/index.jsx
@@ -9,9 +9,11 @@ import ShareComponent from "../../../../../Components/ShareComponent";
// Utils
import { useTheme } from "@emotion/react";
import PropTypes from "prop-types";
+import { useTranslation } from "react-i18next";
const StatusHeader = ({ monitor, connectionStatus, elementToCapture }) => {
const theme = useTheme();
+ const { t } = useTranslation();
const COLOR_MAP = {
up: theme.palette.successSecondary.main,
down: theme.palette.error.lowContrast,
@@ -59,14 +61,14 @@ const StatusHeader = ({ monitor, connectionStatus, elementToCapture }) => {
backgroundColor={theme.palette.successSecondary.lowContrast}
color={theme.palette.success.lowContrast}
>
- Uptime: {(monitor.uptimePercentage * 100).toFixed(2)}%
+ {t("distributedUptimeDetailsStatusHeaderUptime")} {(monitor.totalUptime * 100).toFixed(2)}%
- Last updated{" "}
+ {t("distributedUptimeDetailsStatusHeaderLastUpdate")}{" "}
{
const { monitorId } = useParams();
@@ -32,6 +33,7 @@ const DistributedUptimeDetails = () => {
// Utils
const theme = useTheme();
const isAdmin = useIsAdmin();
+ const { t } = useTranslation();
const navigate = useNavigate();
const [isLoading, networkError, connectionStatus, monitor, lastUpdateTrigger] =
useSubscribeToDetails({ monitorId, dateRange });
@@ -55,9 +57,9 @@ const DistributedUptimeDetails = () => {
marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary}
>
- Network error
+ {t("networkError")}
- Please check your connection
+ {t("checkConnection")}
);
}
@@ -70,7 +72,7 @@ const DistributedUptimeDetails = () => {
- There is no check history for this monitor yet.
+ {t("distributedUptimeDetailsNoMonitorHistory")}
);
diff --git a/src/Pages/DistributedUptime/Monitors/index.jsx b/src/Pages/DistributedUptime/Monitors/index.jsx
index 41e21130d..097f0128c 100644
--- a/src/Pages/DistributedUptime/Monitors/index.jsx
+++ b/src/Pages/DistributedUptime/Monitors/index.jsx
@@ -13,6 +13,7 @@ import { useTheme } from "@mui/material/styles";
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
import { useSubscribeToMonitors } from "./Hooks/useSubscribeToMonitors";
import SkeletonLayout from "./Components/Skeleton";
+import { useTranslation } from "react-i18next";
// Constants
const BREADCRUMBS = [{ name: `Distributed Uptime`, path: "/distributed-uptime" }];
@@ -24,6 +25,7 @@ const DistributedUptimeMonitors = () => {
// Utils
const theme = useTheme();
const isAdmin = useIsAdmin();
+ const { t } = useTranslation();
const [isLoading, networkError, monitors, monitorsSummary, filteredMonitors] =
useSubscribeToMonitors(page, rowsPerPage);
// Handlers
@@ -48,9 +50,9 @@ const DistributedUptimeMonitors = () => {
marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary}
>
- Network error
+ {t("networkError")}
- Please check your connection
+ {t("checkConnection")}
);
}
diff --git a/src/locales/gb.json b/src/locales/gb.json
index cf7711fa8..521d0eb18 100644
--- a/src/locales/gb.json
+++ b/src/locales/gb.json
@@ -1,12 +1,29 @@
{
"dontHaveAccount": "Don't have account",
+ "https": "HTTPS",
+ "http": "HTTP",
+ "monitor": "monitor",
+ "aboutus": "About Us",
"email": "E-mail",
"forgotPassword": "Forgot Password",
"password": "password",
"signUp": "Sign up",
+ "signUP": "Sign Up",
"submit": "Submit",
"title": "Title",
"continue": "Continue",
+ "now": "Now",
+ "delete": "Delete",
+ "configure": "Configure",
+ "networkError": "Network error",
+ "responseTime": "Response time:",
+ "ms": "ms",
+ "bar": "Bar",
+ "area": "Area",
+ "country": "COUNTRY",
+ "city": "CITY",
+ "response": "RESPONSE",
+ "checkConnection": "Please check your connection",
"enterEmail": "Enter your email",
"authLoginTitle": "Log In",
"authLoginEnterPassword": "Enter your password",
@@ -16,11 +33,13 @@
"commonBack": "Back",
"authForgotPasswordTitle": "Forgot password?",
"authForgotPasswordResetPassword": "Reset password",
+ "passwordreset": "Password Reset",
"authRegisterAlreadyHaveAccount": "Already have an account?",
"commonAppName": "Checkmate",
"authLoginEnterEmail": "Enter your email",
"authRegisterTitle": "Create an account",
"authRegisterStepOneTitle": "Create your account",
+ "authRegisterStepOnePersonalDetails": "Enter your personal details",
"authRegisterStepOneDescription": "Enter your details to get started",
"authRegisterStepTwoTitle": "Set up your profile",
"authRegisterStepTwoDescription": "Tell us more about yourself",
@@ -30,9 +49,10 @@
"authForgotPasswordSendInstructions": "Send instructions",
"authForgotPasswordBackTo": "Back to",
"authCheckEmailTitle": "Check your email",
- "authCheckEmailDescription": "We sent a password reset link to {{email}}",
+ "authCheckEmailDescription": "We sent a password reset link to",
"authCheckEmailResendEmail": "Resend email",
"authCheckEmailBackTo": "Back to",
+ "authCheckEmailOpenEmailButton": "Open email app",
"goBackTo": "Go back to",
"authCheckEmailDidntReceiveEmail": "Didn't receive the email?",
"authCheckEmailClickToResend": "Click to resend",
@@ -42,6 +62,7 @@
"authSetNewPasswordConfirmPassword": "Confirm password",
"confirmPassword": "Confirm your password",
"authSetNewPasswordResetPassword": "Reset password",
+ "authNewPasswordConfirmed": "Your password has been successfully reset. Click below to log in magically.",
"authSetNewPasswordBackTo": "Back to",
"authPasswordMustBeAtLeast": "Must be at least",
"authPasswordCharactersLong": "8 characters long",
@@ -66,6 +87,19 @@
"distributedRightCategoryTitle": "Monitor",
"distributedStatusServerMonitors": "Server Monitors",
"distributedStatusServerMonitorsDescription": "Monitor status of related servers",
+ "distributedUptimeCreateSelectURL": "Here you can select the URL of the host, together with the type of monitor.",
+ "distributedUptimeCreateChecks": "Checks to perform",
+ "distributedUptimeCreateChecksDescription": "You can always add or remove checks after adding your site.",
+ "distributedUptimeCreateIncidentNotification": "Incident notifications",
+ "distributedUptimeCreateIncidentDescription": "When there is an incident, notify users.",
+ "distributedUptimeCreateAdvancedSettings": "Advanced settings",
+ "distributedUptimeDetailsNoMonitorHistory": "There is no check history for this monitor yet.",
+ "distributedUptimeDetailsFooterHeading": "Made with ❤️ by UpRock & Bluewave Labs",
+ "distributedUptimeDetailsFooterBuilt": "Built on",
+ "distributedUptimeDetailsFooterSolana": "Solana",
+ "distributedUptimeDetailsMonitorHeader": "Distributed Uptime Monitoring powered by DePIN",
+ "distributedUptimeDetailsStatusHeaderUptime": "Uptime:",
+ "distributedUptimeDetailsStatusHeaderLastUpdate": "Last updated",
"settingsGeneralSettings": "General settings",
"settingsDisplayTimezone": "Display timezone",
|