File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/app/(public)/repos/[language] Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default async function ReposPage({
3131 if ( ! reposRes ) notFound ( ) ;
3232
3333 const { repos, page } = reposRes ;
34+ const languageName = capitalize ( decodeURIComponent ( language ) ) ;
3435
3536 return (
3637 < >
@@ -43,13 +44,11 @@ export default async function ReposPage({
4344 < div className = "max-w-4xl mx-auto" >
4445 < h1 className = "mb-6 text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-medium uppercase text-hacktoberfest-light break-words px-2" >
4546 < span className = "font-bold heading-text" >
46- { repos . total_count }
47+ { Intl . NumberFormat ( ) . format ( repos . total_count ) }
4748 </ span > { ' ' }
4849 repositories for{ ' ' }
4950 < span className = "font-bold heading-text" >
50- { sp . q
51- ? sp . q + ' in ' + capitalize ( decodeURIComponent ( language ) )
52- : capitalize ( decodeURIComponent ( language ) ) }
51+ { sp . q ? sp . q + ' in ' + languageName : languageName }
5352 </ span >
5453 </ h1 >
5554 </ div >
You can’t perform that action at this time.
0 commit comments