@@ -37,8 +37,8 @@ export async function generateMetadata({
3737 return { title : 'CLI Not Found | AI Coding Stack' }
3838 }
3939
40- const tGlobal = await getTranslations ( { locale } )
41- const licenseStr = cli . license ? translateLicenseText ( cli . license , tGlobal ) : ''
40+ const tShared = await getTranslations ( { locale } )
41+ const licenseStr = cli . license ? translateLicenseText ( cli . license , tShared ) : ''
4242
4343 return await generateSoftwareDetailMetadata ( {
4444 locale : locale as Locale ,
@@ -68,8 +68,8 @@ export default async function CLIPage({
6868 notFound ( )
6969 }
7070
71- const t = await getTranslations ( { locale, namespace : 'pages.stacks.cliDetail' } )
72- const tGlobal = await getTranslations ( { locale } )
71+ const tPage = await getTranslations ( { locale, namespace : 'pages.stacks.cliDetail' } )
72+ const tShared = await getTranslations ( { locale } )
7373
7474 // Transform URLs for component props
7575 const websiteUrl = cli . websiteUrl || cli . resourceUrls ?. download || undefined
@@ -88,7 +88,7 @@ export default async function CLIPage({
8888 version : cli . latestVersion ,
8989 platforms : cli . platforms ,
9090 pricing : cli . pricing ,
91- license : cli . license ? translateLicenseText ( cli . license , tGlobal ) : undefined ,
91+ license : cli . license ? translateLicenseText ( cli . license , tShared ) : undefined ,
9292 } ,
9393 category : 'clis' ,
9494 locale : locale as Locale ,
@@ -99,8 +99,8 @@ export default async function CLIPage({
9999
100100 // Breadcrumb items
101101 const breadcrumbItems = [
102- { name : tGlobal ( 'shared.terms.aiCodingStack' ) , href : '/ai-coding-stack' } ,
103- { name : tGlobal ( 'shared.categories.plural.clis' ) , href : '/clis' } ,
102+ { name : tShared ( 'shared.terms.aiCodingStack' ) , href : '/ai-coding-stack' } ,
103+ { name : tShared ( 'shared.categories.plural.clis' ) , href : '/clis' } ,
104104 { name : cli . name , href : `clis/${ cli . id } ` } ,
105105 ]
106106
@@ -114,7 +114,7 @@ export default async function CLIPage({
114114 description = { cli . description }
115115 vendor = { cli . vendor }
116116 category = "CLI"
117- categoryLabel = { t ( 'categoryLabel' ) }
117+ categoryLabel = { tPage ( 'categoryLabel' ) }
118118 verified = { cli . verified ?? false }
119119 latestVersion = { cli . latestVersion }
120120 license = { cli . license }
@@ -135,7 +135,7 @@ export default async function CLIPage({
135135
136136 < ProductCommands install = { cli . installCommand } launch = { cli . launchCommand } />
137137
138- < BackToNavigation href = "/clis" title = { t ( 'allCLIs' ) } />
138+ < BackToNavigation href = "/clis" title = { tPage ( 'allCLIs' ) } />
139139 </ main >
140140 </ PageLayout >
141141 )
0 commit comments