mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 21:17:43 +03:00
feat: add more search setting i18n keys
This commit is contained in:
parent
ec86f456dd
commit
e64da9d7d9
@ -57,8 +57,14 @@
|
|||||||
"defaultView.unfilteredGrid": "Unfiltered Grid",
|
"defaultView.unfilteredGrid": "Unfiltered Grid",
|
||||||
"gridColumns": "Grid Columns",
|
"gridColumns": "Grid Columns",
|
||||||
"gridColumns.desc": "Select the number of columns in the grid view.",
|
"gridColumns.desc": "Select the number of columns in the grid view.",
|
||||||
"searchSource": "Search Source",
|
"searchSource": {
|
||||||
"searchSource.desc": "Choose whether to search the thumbnails or descriptions of your tracked objects."
|
"label": "Search Source",
|
||||||
|
"desc": "Choose whether to search the thumbnaDils or descriptions of your tracked objects.",
|
||||||
|
"options": {
|
||||||
|
"thumbnailImage": "Thumbnail Image",
|
||||||
|
"description": "Description"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,8 +57,14 @@
|
|||||||
"defaultView.unfilteredGrid": "未过滤网格",
|
"defaultView.unfilteredGrid": "未过滤网格",
|
||||||
"gridColumns": "网格列数",
|
"gridColumns": "网格列数",
|
||||||
"gridColumns.desc": "选择网格视图中的列数。",
|
"gridColumns.desc": "选择网格视图中的列数。",
|
||||||
"searchSource": "搜索源",
|
"searchSource": {
|
||||||
"searchSource.desc": "选择是搜索缩略图还是跟踪对象的描述。"
|
"label": "搜索源",
|
||||||
|
"desc": "选择是搜索缩略图还是跟踪对象的描述。",
|
||||||
|
"options": {
|
||||||
|
"thumbnailImage": "缩略图",
|
||||||
|
"description": "描述"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -159,14 +159,14 @@ export function SearchTypeContent({
|
|||||||
<div className="overflow-x-hidden">
|
<div className="overflow-x-hidden">
|
||||||
<DropdownMenuSeparator className="mb-3" />
|
<DropdownMenuSeparator className="mb-3" />
|
||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
<div className="text-md">{t("explore.settings.searchSource")}</div>
|
<div className="text-md">{t("explore.settings.searchSource.label")}</div>
|
||||||
<div className="space-y-1 text-xs text-muted-foreground">
|
<div className="space-y-1 text-xs text-muted-foreground">
|
||||||
{t("explore.settings.searchSource.desc")}
|
{t("explore.settings.searchSource.desc")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-2.5 flex flex-col gap-2.5">
|
<div className="mt-2.5 flex flex-col gap-2.5">
|
||||||
<FilterSwitch
|
<FilterSwitch
|
||||||
label="Thumbnail Image"
|
label={t("explore.settings.searchSource.options.thumbnailImage")}
|
||||||
isChecked={searchSources?.includes("thumbnail") ?? false}
|
isChecked={searchSources?.includes("thumbnail") ?? false}
|
||||||
onCheckedChange={(isChecked) => {
|
onCheckedChange={(isChecked) => {
|
||||||
const updatedSources = searchSources ? [...searchSources] : [];
|
const updatedSources = searchSources ? [...searchSources] : [];
|
||||||
@ -184,7 +184,7 @@ export function SearchTypeContent({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<FilterSwitch
|
<FilterSwitch
|
||||||
label="Description"
|
label={t("explore.settings.searchSource.options.description")}
|
||||||
isChecked={searchSources?.includes("description") ?? false}
|
isChecked={searchSources?.includes("description") ?? false}
|
||||||
onCheckedChange={(isChecked) => {
|
onCheckedChange={(isChecked) => {
|
||||||
const updatedSources = searchSources ? [...searchSources] : [];
|
const updatedSources = searchSources ? [...searchSources] : [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user