@@ -9,6 +9,7 @@ import { Skeleton } from '@/components/ui/skeleton'
99import { Badge } from '@/components/ui/badge'
1010import { User , Plus , ChevronRight } from 'lucide-react'
1111import Link from 'next/link'
12+ import { pluralize } from '@codebuff/common/util/string'
1213import type { PublisherProfileResponse } from '@codebuff/common/types/publisher'
1314
1415const PublishersPage = ( ) => {
@@ -139,7 +140,7 @@ const PublishersPage = () => {
139140 < Card >
140141 < CardHeader >
141142 < CardTitle className = "flex items-center justify-between" >
142- < span > Personal Publishers ( { personalPublishers . length } ) </ span >
143+ < span > Personal Publishers</ span >
143144 </ CardTitle >
144145 </ CardHeader >
145146 < CardContent >
@@ -201,7 +202,8 @@ const PublishersPage = () => {
201202 ) }
202203 < div className = "flex items-center space-x-4 text-sm text-muted-foreground" >
203204 < span >
204- { publisher . agentCount || 0 } agents published
205+ { pluralize ( publisher . agentCount || 0 , 'agent' ) } { ' ' }
206+ published
205207 </ span >
206208 < span >
207209 Created{ ' ' }
@@ -224,9 +226,7 @@ const PublishersPage = () => {
224226 { orgPublishers . length > 0 && (
225227 < Card >
226228 < CardHeader >
227- < CardTitle >
228- Organization Publishers ({ orgPublishers . length } )
229- </ CardTitle >
229+ < CardTitle > Organization Publishers</ CardTitle >
230230 </ CardHeader >
231231 < CardContent >
232232 < div className = "space-y-3" >
@@ -260,7 +260,8 @@ const PublishersPage = () => {
260260 ) }
261261 < div className = "flex items-center space-x-4 text-sm text-muted-foreground" >
262262 < span >
263- { publisher . agentCount || 0 } agents published
263+ { pluralize ( publisher . agentCount || 0 , 'agent' ) } { ' ' }
264+ published
264265 </ span >
265266 < span >
266267 Created{ ' ' }
0 commit comments