diff --git a/messages/en-US.json b/messages/en-US.json index c3ac72b9..b5c0062c 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2365,5 +2365,25 @@ "orgAuthWhatsThis": "Where can I find my organization ID?", "learnMore": "Learn more", "backToHome": "Go back to home", - "needToSignInToOrg": "Need to use your organization's identity provider?" + "needToSignInToOrg": "Need to use your organization's identity provider?", + "maintenanceMode": "Maintenance Mode", + "maintenanceModeDescription": "Display a maintenance page to visitors", + "maintenanceModeType": "Maintenance Mode Type", + "showMaintenancePage": "Show a maintenance page to visitors", + "automatic": "Automatic", + "automaticModeDescription": " Show maintenance page only when all backend targets are down or unhealthy. Your resource continues working normally as long as at least one target is healthy.", + "forced": "Forced", + "forcedModeDescription": "Always show the maintenance page regardless of backend health. Use this for planned maintenance when you want to prevent all access.", + "warning:" : "Warning:", + "forcedeModeWarning": "All traffic will be directed to the maintenance page. Your backend resources will not receive any requests.", + "pageTitle": "Page Title", + "pageTitleDescription": "The main heading displayed on the maintenance page", + "maintenancePageMessage": "Maintenance Message", + "maintenancePageMessagePlaceholder": "We'll be back soon! Our site is currently undergoing scheduled maintenance.", + "maintenancePageMessageDescription": "Detailed message explaining the maintenance", + "maintenancePageTimeTitle": "Estimated Completion Time (Optional)", + "maintenanceTime": "e.g., 2 hours, Nov 1 at 5:00 PM", + "maintenanceEstimatedTimeDescription": "When you expect maintenance to be completed", + "editDomain": "Edit Domain", + "editDomainDescription": "Select a domain for your resource" } diff --git a/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx index 87692112..042ded65 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx @@ -476,10 +476,10 @@ export default function GeneralForm() {

- Maintenance Mode + {t("maintenanceMode")}

- Display a maintenance page to visitors + {t("maintenanceModeDescription")}

@@ -504,7 +504,7 @@ export default function GeneralForm() {
- Show a maintenance page to visitors + {t("showMaintenancePage")} @@ -519,7 +519,7 @@ export default function GeneralForm() { render={({ field }) => ( - Maintenance Mode Type + {t("maintenanceModeType")}
- Automatic (Recommended) + {t("automatic")} ({t("recommended")}) - Show maintenance page only when all backend targets are down or unhealthy. - Your resource continues working normally as long as at least one target is healthy. + {t("automaticModeDescription")}
@@ -547,11 +546,10 @@ export default function GeneralForm() {
- Forced + {t("forced")} - Always show the maintenance page regardless of backend health. - Use this for planned maintenance when you want to prevent all access. + {t("forcedModeDescription")}
@@ -566,8 +564,7 @@ export default function GeneralForm() { - Warning: All traffic will be directed to the maintenance page. - Your backend resources will not receive any requests. + {t("warning:")} {t("forcedModeWarning")} )} @@ -577,7 +574,7 @@ export default function GeneralForm() { name="maintenanceTitle" render={({ field }) => ( - Page Title + {t("pageTitle")} - The main heading displayed on the maintenance page + {t("pageTitleDescription")} @@ -597,16 +594,16 @@ export default function GeneralForm() { name="maintenanceMessage" render={({ field }) => ( - Maintenance Message + {t("maintenancePageMessage")}