From b42a63b882dbde071b62836b5234a5b197e5b317 Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 4 Mar 2026 16:02:37 +0000 Subject: [PATCH] docs: make Go hero CTA translatable with pricing emphasis --- packages/console/app/src/i18n/en.ts | 5 ++++- packages/console/app/src/routes/go/index.css | 8 ++++++++ packages/console/app/src/routes/go/index.tsx | 15 ++++++++++++++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/console/app/src/i18n/en.ts b/packages/console/app/src/i18n/en.ts index 065a02be3..9cd896fe2 100644 --- a/packages/console/app/src/i18n/en.ts +++ b/packages/console/app/src/i18n/en.ts @@ -250,7 +250,10 @@ export const dict = { "go.hero.body": "Go brings agentic coding to programmers around the world. Offering generous limits and reliable access to the most capable open-source models, so you can build with powerful agents without worrying about cost or availability.", - "go.cta.start": "Subscribe to Go - $10/mo", + "go.cta.start": "Subscribe to Go", + "go.cta.template": "{{text}} {{price}}", + "go.cta.text": "Subscribe to Go", + "go.cta.price": "$10/month", "go.pricing.body": "Use with any agent. Top up credit if needed. Cancel any time.", "go.graph.free": "Free", "go.graph.go": "Go", diff --git a/packages/console/app/src/routes/go/index.css b/packages/console/app/src/routes/go/index.css index 2b5ddc970..5a66de678 100644 --- a/packages/console/app/src/routes/go/index.css +++ b/packages/console/app/src/routes/go/index.css @@ -359,6 +359,14 @@ body { width: fit-content; gap: 12px; text-decoration: none; + + [data-slot="cta-price"] { + opacity: 0.6; + } + + svg { + opacity: 0.6; + } } a:hover { diff --git a/packages/console/app/src/routes/go/index.tsx b/packages/console/app/src/routes/go/index.tsx index ac2f10a99..83dfc31ee 100644 --- a/packages/console/app/src/routes/go/index.tsx +++ b/packages/console/app/src/routes/go/index.tsx @@ -259,7 +259,20 @@ export default function Home() { */} - {i18n.t("go.cta.start")} + + + {(part) => { + if (part === "{{text}}") return {i18n.t("go.cta.text")} + if (part === "{{price}}") return {i18n.t("go.cta.price")} + return part + }} + +