Fix i18n plural for selected review count (#17864)

* Fix i18n plural for selected review count

* use selected count in explore
This commit is contained in:
Josh Hawkins 2025-04-22 22:01:46 -05:00 committed by GitHub
parent 78c1694451
commit cee5d6e5ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -31,6 +31,6 @@
"label": "View new review items",
"button": "New Items To Review"
},
"selected": "selected",
"selected": "{{count}} selected",
"camera": "Camera"
}

View File

@ -96,7 +96,6 @@ export default function ReviewActionGroup({
<div className="absolute inset-x-2 inset-y-0 flex items-center justify-between gap-2 bg-background py-2 md:left-auto">
<div className="mx-1 flex items-center justify-center text-sm text-muted-foreground">
<div className="p-1">
{selectedReviews.length}{" "}
{t("selected", {
ns: "views/events",
count: selectedReviews.length,

View File

@ -108,7 +108,12 @@ export default function SearchActionGroup({
<div className="absolute inset-x-2 inset-y-0 flex items-center justify-between gap-2 bg-background py-2 md:left-auto">
<div className="mx-1 flex items-center justify-center text-sm text-muted-foreground">
<div className="p-1">{`${selectedObjects.length} selected`}</div>
<div className="p-1">
{t("selected", {
ns: "views/events",
count: selectedObjects.length,
})}
</div>
<div className="p-1">{"|"}</div>
<div
className="cursor-pointer p-2 text-primary hover:rounded-lg hover:bg-secondary"