feat: add more search setting i18n keys

This commit is contained in:
ZhaiSoul 2025-03-13 00:16:24 +08:00
parent ec86f456dd
commit e64da9d7d9
3 changed files with 19 additions and 7 deletions

View File

@ -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"
}
}
}
}
}

View File

@ -57,8 +57,14 @@
"defaultView.unfilteredGrid": "未过滤网格",
"gridColumns": "网格列数",
"gridColumns.desc": "选择网格视图中的列数。",
"searchSource": "搜索源",
"searchSource.desc": "选择是搜索缩略图还是跟踪对象的描述。"
"searchSource": {
"label": "搜索源",
"desc": "选择是搜索缩略图还是跟踪对象的描述。",
"options": {
"thumbnailImage": "缩略图",
"description": "描述"
}
}
}
}

View File

@ -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] : [];