translate setup page

This commit is contained in:
miloschwartz
2025-12-05 12:19:40 -05:00
parent d3be1fbf4c
commit 2d3fbb9704
2 changed files with 10 additions and 7 deletions

View File

@@ -2242,5 +2242,8 @@
"install": "Install", "install": "Install",
"run": "Run", "run": "Run",
"clientNameDescription": "The display name of the client that can be changed later.", "clientNameDescription": "The display name of the client that can be changed later.",
"clientAddress": "Client Address (Advanced)" "clientAddress": "Client Address (Advanced)",
"setupFailedToFetchSubnet": "Failed to fetch default subnet",
"setupSubnetAdvanced": "Subnet (Advanced)",
"setupSubnetDescription": "The subnet for this organization's internal network."
} }

View File

@@ -76,8 +76,8 @@ export default function StepperForm() {
} catch (e) { } catch (e) {
console.error("Failed to fetch default subnet:", e); console.error("Failed to fetch default subnet:", e);
toast({ toast({
title: "Error", title: t("error"),
description: "Failed to fetch default subnet", description: t("setupFailedToFetchSubnet"),
variant: "destructive" variant: "destructive"
}); });
} }
@@ -301,7 +301,9 @@ export default function StepperForm() {
name="subnet" name="subnet"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Subnet</FormLabel> <FormLabel>
{t("setupSubnetAdvanced")}
</FormLabel>
<FormControl> <FormControl>
<Input <Input
type="text" type="text"
@@ -310,9 +312,7 @@ export default function StepperForm() {
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
<FormDescription> <FormDescription>
The subnet for this {t("setupSubnetDescription")}
organization's internal
network.
</FormDescription> </FormDescription>
</FormItem> </FormItem>
)} )}