add en-Us strings

This commit is contained in:
Owen
2025-12-20 15:41:42 -05:00
committed by Owen Schwartz
parent 795302a351
commit 8618a5c2fd
2 changed files with 41 additions and 24 deletions

View File

@@ -2365,5 +2365,25 @@
"orgAuthWhatsThis": "Where can I find my organization ID?", "orgAuthWhatsThis": "Where can I find my organization ID?",
"learnMore": "Learn more", "learnMore": "Learn more",
"backToHome": "Go back to home", "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"
} }

View File

@@ -476,10 +476,10 @@ export default function GeneralForm() {
<div className="space-y-4"> <div className="space-y-4">
<div> <div>
<h3 className="text-lg font-medium"> <h3 className="text-lg font-medium">
Maintenance Mode {t("maintenanceMode")}
</h3> </h3>
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground">
Display a maintenance page to visitors {t("maintenanceModeDescription")}
</p> </p>
</div> </div>
@@ -504,7 +504,7 @@ export default function GeneralForm() {
</FormControl> </FormControl>
</div> </div>
<FormDescription> <FormDescription>
Show a maintenance page to visitors {t("showMaintenancePage")}
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@@ -519,7 +519,7 @@ export default function GeneralForm() {
render={({ field }) => ( render={({ field }) => (
<FormItem className="space-y-3"> <FormItem className="space-y-3">
<FormLabel> <FormLabel>
Maintenance Mode Type {t("maintenanceModeType")}
</FormLabel> </FormLabel>
<FormControl> <FormControl>
<RadioGroup <RadioGroup
@@ -533,11 +533,10 @@ export default function GeneralForm() {
</FormControl> </FormControl>
<div className="space-y-1 leading-none"> <div className="space-y-1 leading-none">
<FormLabel className="font-normal"> <FormLabel className="font-normal">
<strong>Automatic</strong> (Recommended) <strong>{t("automatic")}</strong> ({t("recommended")})
</FormLabel> </FormLabel>
<FormDescription> <FormDescription>
Show maintenance page only when all backend targets are down or unhealthy. {t("automaticModeDescription")}
Your resource continues working normally as long as at least one target is healthy.
</FormDescription> </FormDescription>
</div> </div>
</FormItem> </FormItem>
@@ -547,11 +546,10 @@ export default function GeneralForm() {
</FormControl> </FormControl>
<div className="space-y-1 leading-none"> <div className="space-y-1 leading-none">
<FormLabel className="font-normal"> <FormLabel className="font-normal">
<strong>Forced</strong> <strong>{t("forced")}</strong>
</FormLabel> </FormLabel>
<FormDescription> <FormDescription>
Always show the maintenance page regardless of backend health. {t("forcedModeDescription")}
Use this for planned maintenance when you want to prevent all access.
</FormDescription> </FormDescription>
</div> </div>
</FormItem> </FormItem>
@@ -566,8 +564,7 @@ export default function GeneralForm() {
<Alert> <Alert>
<AlertCircle className="h-4 w-4" /> <AlertCircle className="h-4 w-4" />
<AlertDescription> <AlertDescription>
<strong>Warning:</strong> All traffic will be directed to the maintenance page. <strong>{t("warning:")}</strong> {t("forcedModeWarning")}
Your backend resources will not receive any requests.
</AlertDescription> </AlertDescription>
</Alert> </Alert>
)} )}
@@ -577,7 +574,7 @@ export default function GeneralForm() {
name="maintenanceTitle" name="maintenanceTitle"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Page Title</FormLabel> <FormLabel>{t("pageTitle")}</FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}
@@ -585,7 +582,7 @@ export default function GeneralForm() {
/> />
</FormControl> </FormControl>
<FormDescription> <FormDescription>
The main heading displayed on the maintenance page {t("pageTitleDescription")}
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@@ -597,16 +594,16 @@ export default function GeneralForm() {
name="maintenanceMessage" name="maintenanceMessage"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Maintenance Message</FormLabel> <FormLabel>{t("maintenancePageMessage")}</FormLabel>
<FormControl> <FormControl>
<Textarea <Textarea
{...field} {...field}
rows={4} rows={4}
placeholder="We are currently performing scheduled maintenance. Please check back soon." placeholder={t("maintenancePageMessagePlaceholder")}
/> />
</FormControl> </FormControl>
<FormDescription> <FormDescription>
Detailed message explaining the maintenance {t("maintenancePageMessageDescription")}
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@@ -619,16 +616,16 @@ export default function GeneralForm() {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel> <FormLabel>
Estimated Completion Time (Optional) {t("maintenancePageTimeTitle")}
</FormLabel> </FormLabel>
<FormControl> <FormControl>
<Input <Input
{...field} {...field}
placeholder="e.g., 2 hours, Nov 1 at 5:00 PM" placeholder={t("maintenanceTime")}
/> />
</FormControl> </FormControl>
<FormDescription> <FormDescription>
When you expect maintenance to be completed {t("maintenanceEstimatedTimeDescription")}
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
@@ -666,9 +663,9 @@ export default function GeneralForm() {
> >
<CredenzaContent> <CredenzaContent>
<CredenzaHeader> <CredenzaHeader>
<CredenzaTitle>Edit Domain</CredenzaTitle> <CredenzaTitle>{t("editDomain")}</CredenzaTitle>
<CredenzaDescription> <CredenzaDescription>
Select a domain for your resource {t("editDomainDescription")}
</CredenzaDescription> </CredenzaDescription>
</CredenzaHeader> </CredenzaHeader>
<CredenzaBody> <CredenzaBody>
@@ -709,7 +706,7 @@ export default function GeneralForm() {
} }
}} }}
> >
Select Domain {t("selectDomain")}
</Button> </Button>
</CredenzaFooter> </CredenzaFooter>
</CredenzaContent> </CredenzaContent>