mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 09:02:15 +03:00
fix missing i18n keys (#18309)
This commit is contained in:
@@ -240,11 +240,13 @@ export function CameraStreamingDialog({
|
||||
Object.entries(config?.cameras[camera].live.streams).length > 0 && (
|
||||
<div className="flex flex-col items-start gap-2">
|
||||
<Label htmlFor="stream" className="text-right">
|
||||
Stream
|
||||
{t("group.camera.setting.stream")}
|
||||
</Label>
|
||||
<Select value={streamName} onValueChange={setStreamName}>
|
||||
<SelectTrigger className="">
|
||||
<SelectValue placeholder="Choose a stream" />
|
||||
<SelectValue
|
||||
placeholder={t("group.camera.setting.placeholder")}
|
||||
/>
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
{camera !== "birdseye" &&
|
||||
@@ -305,7 +307,9 @@ export function CameraStreamingDialog({
|
||||
onValueChange={(value) => setStreamType(value as StreamType)}
|
||||
>
|
||||
<SelectTrigger className="">
|
||||
<SelectValue placeholder="Choose a streaming option" />
|
||||
<SelectValue
|
||||
placeholder={t("group.camera.setting.streamMethod.placeholder")}
|
||||
/>
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="no-streaming">
|
||||
|
||||
@@ -99,8 +99,11 @@ export default function ObjectMaskEditPane({
|
||||
objectType = objects;
|
||||
}
|
||||
|
||||
return `Object Mask ${count + 1} (${objectType})`;
|
||||
}, [polygons, polygon]);
|
||||
return t("masksAndZones.objectMaskLabel", {
|
||||
number: count + 1,
|
||||
label: t(objectType, { ns: "objects" }),
|
||||
});
|
||||
}, [polygons, polygon, t]);
|
||||
|
||||
const formSchema = z
|
||||
.object({
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user