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/Pages/Settings/SettingsEmail.jsx b/client/src/Pages/Settings/SettingsEmail.jsx index 6c527eaec..5897ee36d 100644 --- a/client/src/Pages/Settings/SettingsEmail.jsx +++ b/client/src/Pages/Settings/SettingsEmail.jsx @@ -87,10 +87,7 @@ const SettingsEmail = ({ !emailConfig.systemEmailPassword ) { createToast({ - body: t( - "settingsEmailRequiredFields", - "Email address, host, port and password are required" - ), + body: t("settingsPage.emailSettings.toastEmailRequiredFieldsError"), variant: "error", }); return; diff --git a/client/src/locales/en.json b/client/src/locales/en.json index 8d26f75fd..658d08a09 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -197,12 +197,14 @@ "basicInformation": "Basic Information", "bulkImport": { "fallbackPage": "Import a file to upload a list of servers in bulk", + "invalidFileType": "Invalid file type", "noFileSelected": "No file selected", "parsingFailed": "Parsing failed", "selectFile": "Select File", "selectFileDescription": "You can download our or sample", "selectFileTips": "Select CSV file to upload", "title": "Bulk Import", + "uploadFailed": "Upload failed", "uploadSuccess": "Monitors created successfully!", "validationFailed": "Validation failed" }, @@ -226,6 +228,7 @@ "commonSaving": "Saving...", "companyName": "Company name", "configure": "Configure", + "confirmPassword": "Confirm password", "cores": "Cores", "country": "COUNTRY", "cpu": "CPU", @@ -488,6 +491,11 @@ "title": "Export/Import" }, "monitorDisplayName": "Monitor display name", + "monitorHooks": { + "failureAddDemoMonitors": "Failed to add demo monitors", + "successAddDemoMonitors": "Successfully added demo monitors" + }, + "monitorState": { "active": "Active", "paused": "Paused", @@ -661,12 +669,14 @@ "selectAll": "Select all", "sendTestNotifications": "Send test notifications", "seperateEmails": "You can separate multiple emails with a comma", + "settingsAppearance": "Appearance", "settingsDisabled": "Disabled", + "settingsDisplayTimezone": "Display timezone", "settingsEmailUser": "Email user - Username for authentication, overrides email address if specified", - "settingsFailedToAddDemoMonitors": "Failed to add demo monitors", "settingsFailedToClearStats": "Failed to clear stats", "settingsFailedToDeleteMonitors": "Failed to delete all monitors", "settingsFailedToSave": "Failed to save settings", + "settingsGeneralSettings": "General settings", "settingsMonitorsDeleted": "Successfully deleted all monitors", "settingsPage": { "aboutSettings": { @@ -698,7 +708,8 @@ "labelUser": "Email user - Username for authentication, overrides email address if specified", "linkTransport": "See specifications here", "placeholderUser": "Leave empty if not required", - "title": "Email" + "title": "Email", + "toastEmailRequiredFieldsError": "Email address, host, port and password are required" }, "pageSpeedSettings": { "description": "Enter your Google PageSpeed API key to enable Google PageSpeed monitoring. Click Reset to update the key.",