Add count translation

This commit is contained in:
Nicolas Mowen 2025-05-14 11:57:20 -06:00
parent fd0b967d51
commit db67fad5af
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,7 @@
"adjustAnnotationSettings": "Adjust annotation settings",
"scrollViewTips": "Scroll to view the significant moments of this object's lifecycle.",
"autoTrackingTips": "Bounding box positions will be inaccurate for autotracking cameras.",
"count": "{{first}} of {{second}}",
"lifecycleItemDesc": {
"visible": "{{label}} detected",
"entered_zone": "{{label}} entered {{zones}}",

View File

@ -525,7 +525,10 @@ export default function ObjectLifecycle({
{t("objectLifecycle.scrollViewTips")}
</div>
<div className="min-w-20 text-right text-sm text-muted-foreground">
{current + 1} of {eventSequence.length}
{t("objectLifecycle.count", {
first: current + 1,
second: eventSequence.length,
})}
</div>
</div>
{config?.cameras[event.camera]?.onvif.autotracking.enabled_in_config && (