Skip to content

Commit 4debf05

Browse files
b2bvicclaude
andcommitted
fix(marketing): translated pages describe T3 Code in their own language
The SoftwareApplication JSON-LD hardcoded the English tagline, so the 16 translated home and download pages shipped English structured data. Pass the locale's existing translated description to softwareJsonLd. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b8c2cfa commit 4debf05

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/marketing/src/lib/seo.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ export const websiteJsonLd = (): JsonLd => ({
3838
publisher: { "@id": ORGANIZATION_ID },
3939
});
4040

41-
export const softwareJsonLd = (): JsonLd => ({
41+
export const softwareJsonLd = (description: string): JsonLd => ({
4242
"@type": "SoftwareApplication",
4343
"@id": SOFTWARE_ID,
4444
name: SITE_NAME,
45-
description: `${SITE_NAME}. ${SITE_TAGLINE}.`,
45+
description,
4646
url: SITE_ORIGIN,
4747
downloadUrl: absoluteUrl("/download"),
4848
applicationCategory: "DeveloperApplication",

‎apps/marketing/src/pages/[...locale]/download.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const imageProps = {
2828
title={t.title}
2929
description={t.description}
3030
jsonLd={[
31-
softwareJsonLd(),
31+
softwareJsonLd(messagesFor(locale).layout.defaultDescription),
3232
breadcrumbJsonLd([
3333
{ name: "T3 Code", path: localizedHref(locale, "/") },
3434
{ name: t.breadcrumb, path: localizedHref(locale, "/download") },

‎apps/marketing/src/pages/[...locale]/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const mobileEndorsementRows = [
4141
<Layout
4242
title={t.title}
4343
description={t.description}
44-
jsonLd={[softwareJsonLd()]}
44+
jsonLd={[softwareJsonLd(messagesFor(locale).layout.defaultDescription)]}
4545
locale={locale}
4646
localizedPath="/"
4747
>

0 commit comments

Comments
 (0)