diff --git a/client/src/Components/TabPanels/Account/PasswordPanel.jsx b/client/src/Components/TabPanels/Account/PasswordPanel.jsx index 84d16e8b0..81ce93946 100644 --- a/client/src/Components/TabPanels/Account/PasswordPanel.jsx +++ b/client/src/Components/TabPanels/Account/PasswordPanel.jsx @@ -214,7 +214,7 @@ const PasswordPanel = () => { { try { setIsLoading(true); await networkService.addDemoMonitors(); - createToast({ body: t("settingsDemoMonitorsAdded") }); + createToast({ body: t("monitorHooks.successAddDemoMonitors") }); } catch (error) { - createToast({ body: t("settingsFailedToAddDemoMonitors") }); + createToast({ body: t("monitorHooks.failureAddDemoMonitors") }); } finally { setIsLoading(false); } diff --git a/client/src/locales/en.json b/client/src/locales/en.json index 117188852..313c640f7 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -1,4 +1,6 @@ { + "settingsAppearance": "Appearance", + "confirmPassword": "Confirm password", "submit": "Submit", "title": "Title", "distributedStatusHeaderText": "Real-time, real-device coverage", @@ -8,7 +10,6 @@ "settingsFailedToSave": "Failed to save settings", "settingsStatsCleared": "Stats cleared successfully", "settingsFailedToClearStats": "Failed to clear stats", - "settingsFailedToAddDemoMonitors": "Failed to add demo monitors", "settingsMonitorsDeleted": "Successfully deleted all monitors", "settingsFailedToDeleteMonitors": "Failed to delete all monitors", "starPromptTitle": "Star Checkmate", @@ -335,7 +336,9 @@ "uploadSuccess": "Monitors created successfully!", "validationFailed": "Validation failed", "noFileSelected": "No file selected", - "fallbackPage": "Import a file to upload a list of servers in bulk" + "fallbackPage": "Import a file to upload a list of servers in bulk", + "invalidFileType": "Invalid file type", + "uploadFailed": "Upload failed" }, "DeleteAccountTitle": "Remove account", "DeleteAccountButton": "Remove account", @@ -839,5 +842,9 @@ }, "statusPageCreate": { "buttonSave": "Save" + }, + "monitorHooks": { + "successAddDemoMonitors": "Successfully added demo monitors", + "failureAddDemoMonitors": "Failed to add demo monitors" } }