i18n workflow improvements and tweaks (#22586)
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions

* mobile button spacing

* prevent console warning about div being descendant of p

* ensure consistent spacing

* add missing i18n keys

* i18n fixes

- add missing translations
- fix dot notation keys

* use plain string

* add missing key

* add i18next-cli commands for extraction and status

also add false positives removal for several keys

* add i18n key check step to PR workflow

* formatting
This commit is contained in:
Josh Hawkins
2026-03-23 08:48:02 -05:00
committed by GitHub
parent 57c0473e6e
commit 7b6d0c5e42
26 changed files with 1262 additions and 162 deletions
@@ -60,7 +60,7 @@ export default function DeleteRoleDialog({
<div className="text-sm text-muted-foreground">
<p>
<Trans
ns={"views/settings"}
ns="views/settings"
values={{ role }}
components={{ strong: <span className="font-medium" /> }}
>
@@ -35,7 +35,7 @@ export default function DeleteTriggerDialog({
<DialogTitle>{t("triggers.dialog.deleteTrigger.title")}</DialogTitle>
<DialogDescription>
<Trans
ns={"views/settings"}
ns="views/settings"
values={{ triggerName }}
components={{ strong: <span className="font-medium" /> }}
>
@@ -90,7 +90,7 @@ export default function EditRoleCamerasDialog({
</DialogTitle>
<DialogDescription>
<Trans
ns={"views/settings"}
ns="views/settings"
values={{ role }}
components={{ strong: <span className="font-medium" /> }}
>
@@ -40,7 +40,7 @@ export default function MobileTimelineDrawer({
setDrawer(false);
}}
>
{t("timeline")}
{t("timeline.label")}
</div>
<div
className={`mx-4 w-full py-2 text-center smart-capitalize ${selected == "events" ? "rounded-lg bg-secondary" : ""}`}
@@ -494,7 +494,7 @@ export default function CameraEditForm({
<CardContent className="space-y-4 p-4">
<div className="flex items-center justify-between">
<h4 className="font-medium">
{t("cameraWizard.step2.streamTitle", {
{t("cameraWizard.step3.streamTitle", {
number: index + 1,
})}
</h4>
@@ -338,8 +338,8 @@ export default function CameraWizardDialog({
}
} else {
toast.success(
t("camera.cameraConfig.toast.success", {
cameraName: wizardData.cameraName,
t("cameraWizard.save.success", {
cameraName: friendlyName || finalCameraName,
}),
{ position: "top-center" },
);
+2 -2
View File
@@ -785,7 +785,7 @@ export default function ZoneEditPane({
</div>
<FormDescription>
{t("masksAndZones.zones.speedEstimation.desc")}
<div className="mt-2 flex items-center text-primary">
<span className="mt-2 flex items-center text-primary">
<Link
to={getLocaleDocUrl(
"configuration/zones#speed-estimation",
@@ -797,7 +797,7 @@ export default function ZoneEditPane({
{t("readTheDocumentation", { ns: "common" })}
<LuExternalLink className="ml-2 inline-flex size-3" />
</Link>
</div>
</span>
</FormDescription>
<FormMessage />
</FormItem>