Skip to content

Commit 0d31d7c

Browse files
committed
feat(i18n): add translations for 'keep SNI blank' option in host forms
1 parent 433b7da commit 0d31d7c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

public/locales/en/remnawave.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,9 @@
426426
"override-the-xray-json-template": "Override the Xray JSON template which will be used for this host.",
427427
"vital-parameters": "Vital Parameters",
428428
"exclude-this-host-from-specific-internal-squads": "Exclude this host from specific Internal Squads",
429-
"excluded-internal-squads": "Excluded Internal Squads"
429+
"excluded-internal-squads": "Excluded Internal Squads",
430+
"keep-sni-blank": "Keep SNI blank",
431+
"keep-sni-blank-description": "In some cases, SNI must be left blank. Use this option to force an empty SNI. Note that this option has the highest priority, so it will be applied even if SNI is already set."
430432
},
431433
"base-node-form": {
432434
"country": "Country",
@@ -1841,4 +1843,4 @@
18411843
"total-ram": "Total RAM",
18421844
"cpu-model": "CPU Model"
18431845
}
1844-
}
1846+
}

src/shared/ui/forms/hosts/base-host-form/base-host-form.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ export const BaseHostForm = <T extends CreateHostCommand.Request | UpdateHostCom
585585
<Group gap="xs" justify="space-between">
586586
<Group gap={4}>
587587
<Text fw={600} size="sm">
588-
Keep SNI blank
588+
{t('base-host-form.keep-sni-blank')}
589589
</Text>
590590
<HoverCard shadow="md" width={280} withArrow>
591591
<HoverCard.Target>
@@ -600,11 +600,9 @@ export const BaseHostForm = <T extends CreateHostCommand.Request | UpdateHostCom
600600
<HoverCard.Dropdown>
601601
<Stack gap="sm">
602602
<Text c="dimmed" size="sm">
603-
In some cases, SNI must be left
604-
blank. Use this option to force an
605-
empty SNI. Note that this option has
606-
the highest priority, so it will be
607-
applied even if SNI is already set.
603+
{t(
604+
'base-host-form.keep-sni-blank-description'
605+
)}
608606
</Text>
609607
</Stack>
610608
</HoverCard.Dropdown>

0 commit comments

Comments
 (0)