mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-04 06:33:45 +00:00
explore search result tooltip i18n fix
This commit is contained in:
parent
4b9b797935
commit
57e2c0c4e0
@ -190,6 +190,7 @@
|
||||
"trackedObjectsCount_one": "{{count}} tracked object ",
|
||||
"trackedObjectsCount_other": "{{count}} tracked objects ",
|
||||
"searchResult": {
|
||||
"tooltip": "Matched {{type}} at {{confidence}}%",
|
||||
"deleteTrackedObject": {
|
||||
"toast": {
|
||||
"success": "Tracked object deleted successfully.",
|
||||
|
||||
@ -31,7 +31,7 @@ import {
|
||||
import Chip from "@/components/indicators/Chip";
|
||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||
import SearchActionGroup from "@/components/filter/SearchActionGroup";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
|
||||
type SearchViewProps = {
|
||||
search: string;
|
||||
@ -608,8 +608,21 @@ export default function SearchView({
|
||||
</TooltipTrigger>
|
||||
<TooltipPortal>
|
||||
<TooltipContent>
|
||||
Matched {value.search_source} at{" "}
|
||||
{zScoreToConfidence(value.search_distance)}%
|
||||
<Trans
|
||||
ns="views/explore"
|
||||
values={{
|
||||
type: t(
|
||||
"filter.searchType." +
|
||||
value.search_source,
|
||||
{ ns: "views/search" },
|
||||
),
|
||||
confidence: zScoreToConfidence(
|
||||
value.search_distance,
|
||||
),
|
||||
}}
|
||||
>
|
||||
searchResult.tooltip
|
||||
</Trans>
|
||||
</TooltipContent>
|
||||
</TooltipPortal>
|
||||
</Tooltip>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user