mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +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",
|
||||
"gridColumns": "Grid Columns",
|
||||
"gridColumns.desc": "Select the number of columns in the grid view.",
|
||||
"searchSource": "Search Source",
|
||||
"searchSource.desc": "Choose whether to search the thumbnails or descriptions of your tracked objects."
|
||||
"searchSource": {
|
||||
"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": "未过滤网格",
|
||||
"gridColumns": "网格列数",
|
||||
"gridColumns.desc": "选择网格视图中的列数。",
|
||||
"searchSource": "搜索源",
|
||||
"searchSource.desc": "选择是搜索缩略图还是跟踪对象的描述。"
|
||||
"searchSource": {
|
||||
"label": "搜索源",
|
||||
"desc": "选择是搜索缩略图还是跟踪对象的描述。",
|
||||
"options": {
|
||||
"thumbnailImage": "缩略图",
|
||||
"description": "描述"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -159,14 +159,14 @@ export function SearchTypeContent({
|
||||
<div className="overflow-x-hidden">
|
||||
<DropdownMenuSeparator className="mb-3" />
|
||||
<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">
|
||||
{t("explore.settings.searchSource.desc")}
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-2.5 flex flex-col gap-2.5">
|
||||
<FilterSwitch
|
||||
label="Thumbnail Image"
|
||||
label={t("explore.settings.searchSource.options.thumbnailImage")}
|
||||
isChecked={searchSources?.includes("thumbnail") ?? false}
|
||||
onCheckedChange={(isChecked) => {
|
||||
const updatedSources = searchSources ? [...searchSources] : [];
|
||||
@ -184,7 +184,7 @@ export function SearchTypeContent({
|
||||
}}
|
||||
/>
|
||||
<FilterSwitch
|
||||
label="Description"
|
||||
label={t("explore.settings.searchSource.options.description")}
|
||||
isChecked={searchSources?.includes("description") ?? false}
|
||||
onCheckedChange={(isChecked) => {
|
||||
const updatedSources = searchSources ? [...searchSources] : [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user