mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 12:07:40 +03:00
explore i18n fix
This commit is contained in:
parent
db54e6e480
commit
67961c9906
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"documentTitle": "Explore - Frigate",
|
"documentTitle": "Explore - Frigate",
|
||||||
"generativeAI": "Generative AI",
|
"generativeAI": "Generative AI",
|
||||||
|
"exploreMore": "Explore more {{label}} objects",
|
||||||
"exploreIsUnavailable": {
|
"exploreIsUnavailable": {
|
||||||
"title": "Explore is Unavailable",
|
"title": "Explore is Unavailable",
|
||||||
"embeddingsReindexing": {
|
"embeddingsReindexing": {
|
||||||
|
|||||||
@ -190,8 +190,8 @@ function ThumbnailRow({
|
|||||||
/>
|
/>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipPortal>
|
<TooltipPortal>
|
||||||
<TooltipContent className="smart-capitalize">
|
<TooltipContent>
|
||||||
<ExploreMoreLink objectType={objectType} />
|
{t("exploreMore", { label: objectType })}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</TooltipPortal>
|
</TooltipPortal>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@ -283,12 +283,3 @@ function ExploreThumbnailImage({
|
|||||||
</SearchResultActions>
|
</SearchResultActions>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ExploreMoreLink({ objectType }: { objectType: string }) {
|
|
||||||
const formattedType = objectType.replaceAll("_", " ");
|
|
||||||
const label = formattedType.endsWith("s")
|
|
||||||
? `${formattedType}es`
|
|
||||||
: `${formattedType}s`;
|
|
||||||
|
|
||||||
return <div>Explore More {label}</div>;
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user