fix missing i18n keys (#18309)

This commit is contained in:
Josh Hawkins
2025-05-19 16:45:02 -05:00
committed by GitHub
parent 8a143b4284
commit afe513336c
19 changed files with 103 additions and 46 deletions
+37 -21
View File
@@ -200,7 +200,7 @@ export default function ZoneEditPane({
speed_threshold: z.coerce
.number()
.min(0.1, {
message: "Speed threshold must be greater than or equal to 0.1",
message: t("masksAndZones.form.speed.error.mustBeGreaterOrEqualTo"),
})
.optional()
.or(z.literal("")),
@@ -699,11 +699,15 @@ export default function ZoneEditPane({
render={({ field }) => (
<FormItem>
<FormLabel>
Line A distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
{t(
"masksAndZones.zones.speedEstimation.lineADistance",
{
unit:
config?.ui.unit_system == "imperial"
? t("feet", { ns: "common" })
: t("meters", { ns: "common" }),
},
)}
</FormLabel>
<FormControl>
<Input
@@ -722,11 +726,15 @@ export default function ZoneEditPane({
render={({ field }) => (
<FormItem>
<FormLabel>
Line B distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
{t(
"masksAndZones.zones.speedEstimation.lineBDistance",
{
unit:
config?.ui.unit_system == "imperial"
? t("feet", { ns: "common" })
: t("meters", { ns: "common" }),
},
)}
</FormLabel>
<FormControl>
<Input
@@ -745,11 +753,15 @@ export default function ZoneEditPane({
render={({ field }) => (
<FormItem>
<FormLabel>
Line C distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
{t(
"masksAndZones.zones.speedEstimation.lineCDistance",
{
unit:
config?.ui.unit_system == "imperial"
? t("feet", { ns: "common" })
: t("meters", { ns: "common" }),
},
)}
</FormLabel>
<FormControl>
<Input
@@ -768,11 +780,15 @@ export default function ZoneEditPane({
render={({ field }) => (
<FormItem>
<FormLabel>
Line D distance (
{config?.ui.unit_system == "imperial"
? "feet"
: "meters"}
)
{t(
"masksAndZones.zones.speedEstimation.lineDDistance",
{
unit:
config?.ui.unit_system == "imperial"
? t("feet", { ns: "common" })
: t("meters", { ns: "common" }),
},
)}
</FormLabel>
<FormControl>
<Input