Feat: Migrate Hardcoded Strings

This commit is contained in:
Br0wnHammer
2025-03-18 22:20:25 +05:30
parent cdbabeb225
commit 66bc2a8238
3 changed files with 6 additions and 5 deletions
@@ -135,7 +135,7 @@ const ActionsMenu = ({ /* isAdmin, */ maintenanceWindow, updateCallback }) => {
e.stopPropagation();
}}
>
{`${maintenanceWindow.active === true ? "Pause" : "Resume"}`}
{`${maintenanceWindow.active === true ? t("pause") : t("resume")}`}
</MenuItem>
<MenuItem
@@ -150,12 +150,12 @@ const ActionsMenu = ({ /* isAdmin, */ maintenanceWindow, updateCallback }) => {
<Dialog
open={isOpen}
theme={theme}
title={"Do you really want to remove this maintenance window?"}
title={t("maintenanceTableActionMenuDialogTitle")}
onCancel={(e) => {
e.stopPropagation();
setIsOpen(false);
}}
confirmationButtonLabel={"Delete"}
confirmationButtonLabel={t("delete")}
onConfirm={(e) => {
e.stopPropagation(e);
handleRemove(e);
+1 -1
View File
@@ -442,7 +442,7 @@ const PageSpeedConfigure = () => {
title={t("deleteDialogTitle")}
description={t("deleteDialogDescription")}
onCancel={() => setIsOpen(false)}
confirmationButtonLabel={"Delete"}
confirmationButtonLabel={t("delete")}
onConfirm={handleRemove}
isLoading={buttonLoading}
/>
+2 -1
View File
@@ -200,7 +200,7 @@
"notFoundButton": "Go to the main dashboard",
"pageSpeedConfigureSettingsDescription": "Here you can select the URL of the host, together with the type of monitor.",
"monitorDisplayName": "Monitor display name",
"whenNewIncident,": "When there is a new incident,",
"whenNewIncident": "When there is a new incident,",
"notifySMS": "Notify via SMS (coming soon)",
"notifyEmails": "Also notify via email to multiple addresses (coming soon)",
"seperateEmails": "You can separate multiple emails with a comma",
@@ -240,6 +240,7 @@
"uptimeCreate": "The expected value is used to match against response result, and the match determines the status.",
"uptimeCreateJsonPath": "This expression will be evaluated against the reponse JSON data and the result will be used to match against the expected value. See",
"uptimeCreateJsonPathQuery": "for query language documentation.",
"maintenanceTableActionMenuDialogTitle": "Do you really want to remove this maintenance window?",
"notifications": {
"enableNotifications": "Enable {{platform}} notifications",
"testNotification": "Test notification",