mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 10:07:36 +03:00
i18n
This commit is contained in:
parent
672796845b
commit
dedc26a866
@ -18,11 +18,9 @@
|
||||
"aria": "Select events",
|
||||
"noFoundForTimePeriod": "No events found for this time period."
|
||||
},
|
||||
"activity": {
|
||||
"noActivitiesFound": "No activities found",
|
||||
"activitiesCount_one": "{{count}} activity",
|
||||
"activitiesCount_other": "{{count}} activities",
|
||||
"object": "Object"
|
||||
"detail": {
|
||||
"noDataFound": "No detail data to review",
|
||||
"aria": "Toggle detail view"
|
||||
},
|
||||
"objectTrack": {
|
||||
"trackedPoint": "Tracked point",
|
||||
|
||||
@ -169,7 +169,7 @@ export default function DetailStream({
|
||||
<div className="space-y-2 p-4">
|
||||
{reviewItems?.length === 0 ? (
|
||||
<div className="py-8 text-center text-muted-foreground">
|
||||
{t("activity.noActivitiesFound")}
|
||||
{t("detail.noDataFound")}
|
||||
</div>
|
||||
) : (
|
||||
reviewItems?.map((review: ReviewSegment) => {
|
||||
@ -427,7 +427,7 @@ function EventCollapsible({
|
||||
<button
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
className="rounded bg-muted px-2 py-1 text-xs"
|
||||
aria-label={t("activity.details")}
|
||||
aria-label={t("detail.aria")}
|
||||
>
|
||||
{open ? (
|
||||
<LuChevronUp className="size-3" />
|
||||
@ -522,7 +522,7 @@ function ObjectTimeline({
|
||||
if (!timeline || timeline.length === 0) {
|
||||
return (
|
||||
<div className="py-2 text-sm text-muted-foreground">
|
||||
No timeline entries
|
||||
No object detail data available.
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ export default function EventMenu({
|
||||
: `${apiHost}api/events/${event.id}/thumbnail.webp`
|
||||
}
|
||||
>
|
||||
{t("button.download", { ns: "common" })}
|
||||
{t("itemMenu.downloadSnapshot.label")}
|
||||
</a>
|
||||
</DropdownMenuItem>
|
||||
|
||||
|
||||
@ -965,6 +965,7 @@ function Timeline({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"relative",
|
||||
isDesktop
|
||||
? `${timelineType == "timeline" ? "w-[100px]" : timelineType == "detail" ? "w-[30%]" : "w-60"} no-scrollbar overflow-y-auto`
|
||||
: `overflow-hidden portrait:flex-grow ${timelineType == "timeline" ? "landscape:w-[100px]" : timelineType == "detail" ? "flex-1" : "landscape:w-[175px]"} `,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user