mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
fix: fix explore tracking detail audio i18n
This commit is contained in:
parent
9569009a0f
commit
3897b74f98
@ -266,7 +266,7 @@ export function TrackingDetails({
|
|||||||
|
|
||||||
const label = event.sub_label
|
const label = event.sub_label
|
||||||
? event.sub_label
|
? event.sub_label
|
||||||
: getTranslatedLabel(event.label);
|
: getTranslatedLabel(event.label, event.data.type);
|
||||||
|
|
||||||
const getZoneColor = useCallback(
|
const getZoneColor = useCallback(
|
||||||
(zoneName: string) => {
|
(zoneName: string) => {
|
||||||
@ -998,7 +998,7 @@ function LifecycleIconRow({
|
|||||||
<div className="ml-3 flex-shrink-0 px-1 text-right text-xs text-primary-variant">
|
<div className="ml-3 flex-shrink-0 px-1 text-right text-xs text-primary-variant">
|
||||||
<div className="flex flex-row items-center gap-3">
|
<div className="flex flex-row items-center gap-3">
|
||||||
<div className="whitespace-nowrap">{formattedEventTimestamp}</div>
|
<div className="whitespace-nowrap">{formattedEventTimestamp}</div>
|
||||||
{((isAdmin && config?.plus?.enabled) || item.data.box) && (
|
{isAdmin && config?.plus?.enabled && item.data.box && (
|
||||||
<DropdownMenu open={isOpen} onOpenChange={setIsOpen}>
|
<DropdownMenu open={isOpen} onOpenChange={setIsOpen}>
|
||||||
<DropdownMenuTrigger>
|
<DropdownMenuTrigger>
|
||||||
<div className="rounded p-1 pr-2" role="button">
|
<div className="rounded p-1 pr-2" role="button">
|
||||||
|
|||||||
@ -12,7 +12,10 @@ export function getLifecycleItemDescription(
|
|||||||
|
|
||||||
const label = lifecycleItem.data.sub_label
|
const label = lifecycleItem.data.sub_label
|
||||||
? capitalizeFirstLetter(rawLabel)
|
? capitalizeFirstLetter(rawLabel)
|
||||||
: getTranslatedLabel(rawLabel);
|
: getTranslatedLabel(
|
||||||
|
rawLabel,
|
||||||
|
lifecycleItem.class_type === "heard" ? "audio" : "object",
|
||||||
|
);
|
||||||
|
|
||||||
switch (lifecycleItem.class_type) {
|
switch (lifecycleItem.class_type) {
|
||||||
case "visible":
|
case "visible":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user