chore: add objectType i18n

This commit is contained in:
ZhaiSoul 2025-03-15 21:48:32 +08:00
parent 9eba9ccca2
commit be2a0130bc

View File

@ -152,7 +152,7 @@ function ThumbnailRow({
return ( return (
<div className="rounded-lg bg-background_alt p-2 md:px-4"> <div className="rounded-lg bg-background_alt p-2 md:px-4">
<div className="flex flex-row items-center text-lg capitalize"> <div className="flex flex-row items-center text-lg capitalize">
{objectType.replaceAll("_", " ")} {t(objectType, { ns: "objects" })}
{searchResults && ( {searchResults && (
<span className="ml-3 text-sm text-secondary-foreground"> <span className="ml-3 text-sm text-secondary-foreground">
{t("trackedObjectsCount", { {t("trackedObjectsCount", {