@devries-cameron20 / t3code-1 / commits / 5ee1dbffbe
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

feat(marketing): localize the site in 8 languages (#33155)

maria committed Nov 9, 2026 at 06:16 UTC 5ee1dbffbea1c3e2930f6512a99e81e8c4ecc3c4
16 files changed +1345 -134
apps/marketing/astro.config.mjs
+10
@@ -1,5 +1,7 @@
1 import { defineConfig } from "astro/config";
2
3 +import { LOCALES } from "./src/i18n/locales.ts";
4 +
5 // Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
6 // variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
7 // vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
@@ -10,6 +12,14 @@ export default defineConfig({
12 site: "https://t3.codes",
13 // Vercel 308s `/path/` to `/path` (see vercel.ts), so every internal link and canonical uses one form.
14 trailingSlash: "never",
15 + // English stays unprefixed at `/`; see src/i18n/locales.ts for each locale's URL segment.
16 + i18n: {
17 + defaultLocale: "en",
18 + locales: LOCALES.map(({ code, path }) =>
19 + !path || path === code ? code : { path, codes: [code] },
20 + ),
21 + routing: { prefixDefaultLocale: false },
22 + },
23 server: {
24 port: Number(process.env.PORT ?? 4173),
25 },
apps/marketing/src/i18n/de.ts new
+100
@@ -0,0 +1,100 @@
1 +import type { Messages } from "./en";
2 +
3 +export const de: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. Die Open-Source-Steuerzentrale für Coding-Agents.",
7 + socialImageAlt:
8 + "T3 Code: die Open-Source-Steuerzentrale für Coding-Agents, mit Claude Code, Codex, Cursor, OpenCode, Grok und Antigravity.",
9 + homeLabel: "Startseite von T3 Code",
10 + download: "Download",
11 + starsLabel: "T3 Code auf GitHub einen Stern geben, {stars} Sterne",
12 + githubStars: "{stars} GitHub-Sterne",
13 + language: "Sprache",
14 + mitLicensed: "MIT-lizenziert",
15 + iosApp: "iOS-App",
16 + androidApp: "Android-App",
17 + terms: "Nutzungsbedingungen",
18 + privacy: "Datenschutz",
19 + security: "Sicherheit",
20 + },
21 + home: {
22 + title: "T3 Code | Die Open-Source-Steuerzentrale für Coding-Agents",
23 + description: "T3 Code. Die Open-Source-Steuerzentrale für Coding-Agents.",
24 + heroTitle: ["Die Open-Source-", "Steuerzentrale", "für Coding-Agents."],
25 + heroSub:
26 + "Steuere Claude Code, Codex, Antigravity, OpenCode, Cursor und Grok von einer Oberfläche aus. Nutze dein eigenes Abo. Forke das ganze Ding.",
27 + downloadForMac: "Für macOS herunterladen",
28 + downloadForWindows: "Für Windows herunterladen",
29 + downloadForLinux: "Für Linux herunterladen",
30 + sourceLink: "Klau unseren Code (legal)",
31 + alsoOnPhone: "Auch auf deinem Handy:",
32 + screenshotAlt: "T3 Code führt Subagents von Claude, Codex, Muse und Gemini in einem Thread aus",
33 + endorsementsTitle: "Toleriert von über {users} Devs",
34 + endorsementsSub: "Manche haben sogar darüber getwittert.",
35 + endorsementsLabel: "Stimmen von Entwicklern",
36 + readPost: "Beitrag von {handle} auf X lesen",
37 + harnessTitle: "Bring dein eigenes Abo mit",
38 + harnessBody:
39 + "T3 Code verkauft keine Tokens weiter. Verbinde Claude Code, Codex, Antigravity, OpenCode, Cursor oder Grok mit den Zugangsdaten, die du schon hast. Wir orchestrieren sie, du behältst dein Abo.",
40 + googleSignIn: "Google-Anmeldung",
41 + harnessPoints: [
42 + "Keine weiterverkauften Keys. Keine Kontingentgrenzen.",
43 + "Modell mitten im Thread wechseln.",
44 + "Jede Woche neue Agents.",
45 + ],
46 + gitVisualLabel:
47 + "Illustration des Git-Workflows in T3 Code: Diff prüfen, Änderungen committen und pushen, Pull Request öffnen.",
48 + prReady: "Bereit",
49 + prCommits: "3 Commits",
50 + viewDiff: "Diff ansehen",
51 + openPullRequest: "Pull Request öffnen",
52 + commitPush: "Commit & Push",
53 + gitTitle: "Ein Klick für Commit, Push und PR.",
54 + gitBody:
55 + "Jeder Agent-Thread schreibt in seinen eigenen Branch. Wenn alles passt, öffnet ein Klick den PR auf GitHub, mit generiertem Titel, Beschreibung und Changelog. Kein Terminal-Gefrickel nötig.",
56 + gitPoints: [
57 + "Automatisch generierte PR-Titel und -Beschreibungen",
58 + "Inline-Diff-Review vor dem Push",
59 + "Draft-PRs, gestapelte PRs, PRs nachbessern",
60 + "Funktioniert mit deinem bestehenden GitHub-Login",
61 + ],
62 + openTitle: "Wenn dir etwas nicht gefällt, forke es.",
63 + openPoints: [
64 + { lead: "Ändere die UI.", rest: "Gestalte jede Oberfläche nach deinem Geschmack." },
65 + { lead: "Füge einen Agenten hinzu.", rest: "Binde eigene Tools, Modelle und Abläufe ein." },
66 + {
67 + lead: "Veröffentliche deinen eigenen Build.",
68 + rest: "Hoste ihn selbst oder vertreibe ihn als deinen eigenen.",
69 + },
70 + ],
71 + stars: "{stars} Sterne",
72 + forkOnGithub: "Auf GitHub forken",
73 + browseSource: "Quellcode ansehen",
74 + ctaTitle: "Deine Agents verdienen Besseres als ein Terminal.",
75 + ctaSub:
76 + "T3 Code ist kostenlos, Open Source und schnell. Installier es, verbinde das Abo, für das du schon zahlst, und lass deine Agents loslegen.",
77 + otherPlatforms: "Andere Plattformen",
78 + },
79 + download: {
80 + title: "T3 Code für macOS, Windows und Linux herunterladen | T3 Code",
81 + description:
82 + "Lade die offizielle Desktop-App von T3 Code für macOS, Windows oder Linux herunter, oder hol dir die Apps für iOS und Android. t3.codes ist die einzige offizielle Download-Seite.",
83 + breadcrumb: "Download",
84 + heading: "T3 Code herunterladen",
85 + channelLabel: "Release-Kanal",
86 + stable: "Stable",
87 + nightly: "Nightly",
88 + intelNote: "Mac mit Intel-Chip? {link}.",
89 + intelLink: "Lade den x64-Build herunter",
90 + armNote: "Auf ARM? Lade das {deb} oder {appimage} für arm64 herunter.",
91 + mobile: "Mobil",
92 + iphoneIpad: "iPhone & iPad",
93 + terminal: "Terminal",
94 + tryOnce: "Oder einmal ohne Installation ausprobieren:",
95 + allBuilds: "Alle Builds findest du auf der {link}",
96 + releasesPage: "GitHub-Releases-Seite",
97 + builtAgo: "Erstellt {age}",
98 + releasesFallback: "Releases",
99 + },
100 +};
apps/marketing/src/i18n/en.ts new
+105
@@ -0,0 +1,105 @@
1 +// Source strings. Every other locale must provide the same shape (see `Messages`).
2 +// `{name}` placeholders are filled at render time and must survive translation.
3 +export const en = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. The open-source control plane for coding agents.",
7 + socialImageAlt:
8 + "T3 Code: the open-source control plane for coding agents, with Claude Code, Codex, Cursor, OpenCode, Grok and Antigravity.",
9 + homeLabel: "T3 Code home",
10 + download: "Download",
11 + starsLabel: "Star T3 Code on GitHub, {stars} stars",
12 + githubStars: "{stars} GitHub stars",
13 + language: "Language",
14 + mitLicensed: "MIT licensed",
15 + iosApp: "iOS app",
16 + androidApp: "Android app",
17 + terms: "Terms",
18 + privacy: "Privacy",
19 + security: "Security",
20 + },
21 + home: {
22 + title: "T3 Code | The open-source control plane for coding agents",
23 + description: "T3 Code. The open-source control plane for coding agents.",
24 + heroTitle: ["The open-source", "control plane", "for coding agents."],
25 + heroSub:
26 + "Orchestrate Claude Code, Codex, Antigravity, OpenCode, Cursor, and Grok from one surface. Bring your own subscription. Fork the whole thing.",
27 + downloadForMac: "Download for macOS",
28 + downloadForWindows: "Download for Windows",
29 + downloadForLinux: "Download for Linux",
30 + sourceLink: "Steal our code (legally)",
31 + alsoOnPhone: "Also on your phone:",
32 + screenshotAlt: "T3 Code running Claude, Codex, Muse, and Gemini subagents in one thread",
33 + endorsementsTitle: "Tolerated by over {users} devs",
34 + endorsementsSub: "Some of them even tweeted about it.",
35 + endorsementsLabel: "Developer endorsements",
36 + readPost: "Read {handle}'s post on X",
37 + harnessTitle: "Bring your own sub",
38 + harnessBody:
39 + "T3 Code doesn't resell tokens. Plug in Claude Code, Codex, Antigravity, OpenCode, Cursor, or Grok with the credentials you already have. We orchestrate them, you keep your plan.",
40 + googleSignIn: "Google sign-in",
41 + harnessPoints: [
42 + "No keys resold. No quota caps.",
43 + "Switch models mid-thread.",
44 + "More harnesses shipping weekly.",
45 + ],
46 + gitVisualLabel:
47 + "Illustration of the T3 Code Git workflow: review a diff, commit and push changes, and open a pull request.",
48 + prReady: "Ready",
49 + prCommits: "3 commits",
50 + viewDiff: "View diff",
51 + openPullRequest: "Open pull request",
52 + commitPush: "Commit & push",
53 + gitTitle: "One button to commit, push, and make a PR.",
54 + gitBody:
55 + "Every agent thread writes to its own branch. When it's good, one button opens the PR on GitHub with a generated title, body and changelog. No terminal dance required.",
56 + gitPoints: [
57 + "Auto-generated PR titles & bodies",
58 + "Inline diff review before you push",
59 + "Draft PRs, stack PRs, amend PRs",
60 + "Works with your existing GitHub auth",
61 + ],
62 + openTitle: "If you don't like something, fork it.",
63 + openPoints: [
64 + { lead: "Change the UI.", rest: "Restyle every surface to match your taste." },
65 + { lead: "Add an agent.", rest: "Wire in your own tools, models, and flows." },
66 + { lead: "Ship your own build.", rest: "Self-host it or distribute it as your own." },
67 + ],
68 + stars: "{stars} stars",
69 + forkOnGithub: "Fork on GitHub",
70 + browseSource: "Browse source",
71 + ctaTitle: "Your agents deserve better than a terminal.",
72 + ctaSub:
73 + "T3 Code is free, open source and fast. Install it, plug in the harness you already pay for, and let your agents get to work.",
74 + otherPlatforms: "Other platforms",
75 + },
76 + download: {
77 + title: "Download T3 Code for macOS, Windows, and Linux | T3 Code",
78 + description:
79 + "Download the official T3 Code desktop app for macOS, Windows, or Linux, or get the iOS and Android apps. t3.codes is the only official download site.",
80 + breadcrumb: "Download",
81 + heading: "Download T3 Code",
82 + channelLabel: "Release channel",
83 + stable: "Stable",
84 + nightly: "Nightly",
85 + intelNote: "On an Intel Mac? {link}.",
86 + intelLink: "Download the x64 build",
87 + armNote: "On ARM? Download the arm64 {deb} or {appimage}.",
88 + mobile: "Mobile",
89 + iphoneIpad: "iPhone & iPad",
90 + terminal: "Terminal",
91 + tryOnce: "Or try it once without installing:",
92 + allBuilds: "All builds are on the {link}",
93 + releasesPage: "GitHub releases page",
94 + builtAgo: "Built {age}",
95 + releasesFallback: "Releases",
96 + },
97 +};
98 +
99 +type Widen<T> = T extends string
100 + ? string
101 + : T extends ReadonlyArray<infer Item>
102 + ? ReadonlyArray<Widen<Item>>
103 + : { readonly [Key in keyof T]: Widen<T[Key]> };
104 +
105 +export type Messages = Widen<typeof en>;
apps/marketing/src/i18n/es.ts new
+98
@@ -0,0 +1,98 @@
1 +import type { Messages } from "./en";
2 +
3 +export const es: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription:
7 + "T3 Code. El panel de control de código abierto para agentes de programación.",
8 + socialImageAlt:
9 + "T3 Code: el panel de control de código abierto para agentes de programación, con Claude Code, Codex, Cursor, OpenCode, Grok y Antigravity.",
10 + homeLabel: "Inicio de T3 Code",
11 + download: "Descargar",
12 + starsLabel: "Dale una estrella a T3 Code en GitHub, {stars} estrellas",
13 + githubStars: "{stars} estrellas en GitHub",
14 + language: "Idioma",
15 + mitLicensed: "Licencia MIT",
16 + iosApp: "App para iOS",
17 + androidApp: "App para Android",
18 + terms: "Términos",
19 + privacy: "Privacidad",
20 + security: "Seguridad",
21 + },
22 + home: {
23 + title: "T3 Code | El panel de control de código abierto para agentes de programación",
24 + description: "T3 Code. El panel de control de código abierto para agentes de programación.",
25 + heroTitle: ["El panel de control", "de código abierto", "para agentes de código."],
26 + heroSub:
27 + "Orquesta Claude Code, Codex, Antigravity, OpenCode, Cursor y Grok desde un solo lugar. Usa tu propia suscripción. Haz un fork del proyecto entero.",
28 + downloadForMac: "Descargar para macOS",
29 + downloadForWindows: "Descargar para Windows",
30 + downloadForLinux: "Descargar para Linux",
31 + sourceLink: "Roba nuestro código (legalmente)",
32 + alsoOnPhone: "También en tu teléfono:",
33 + screenshotAlt: "T3 Code ejecutando subagentes de Claude, Codex, Muse y Gemini en un mismo hilo",
34 + endorsementsTitle: "Tolerado por más de {users} desarrolladores",
35 + endorsementsSub: "Algunos hasta tuitearon al respecto.",
36 + endorsementsLabel: "Opiniones de desarrolladores",
37 + readPost: "Leer la publicación de {handle} en X",
38 + harnessTitle: "Trae tu propia suscripción",
39 + harnessBody:
40 + "T3 Code no revende tokens. Conecta Claude Code, Codex, Antigravity, OpenCode, Cursor o Grok con las credenciales que ya tienes. Nosotros los orquestamos, tú conservas tu plan.",
41 + googleSignIn: "Inicio de sesión con Google",
42 + harnessPoints: [
43 + "Sin reventa de claves. Sin límites de cuota.",
44 + "Cambia de modelo a mitad del hilo.",
45 + "Nuevas integraciones cada semana.",
46 + ],
47 + gitVisualLabel:
48 + "Ilustración del flujo de Git en T3 Code: revisar un diff, hacer commit y push de los cambios y abrir un pull request.",
49 + prReady: "Listo",
50 + prCommits: "3 commits",
51 + viewDiff: "Ver diff",
52 + openPullRequest: "Abrir pull request",
53 + commitPush: "Commit y push",
54 + gitTitle: "Un botón para hacer commit, push y abrir un PR.",
55 + gitBody:
56 + "Cada hilo de agente escribe en su propia rama. Cuando está listo, un botón abre el PR en GitHub con título, descripción y changelog generados. Sin malabares en la terminal.",
57 + gitPoints: [
58 + "Títulos y descripciones de PR generados automáticamente",
59 + "Revisa el diff en la app antes de hacer push",
60 + "Crea PRs en borrador, apílalos o modifícalos",
61 + "Funciona con tu autenticación de GitHub actual",
62 + ],
63 + openTitle: "Si algo no te gusta, haz un fork.",
64 + openPoints: [
65 + { lead: "Cambia la interfaz.", rest: "Rediseña cada pantalla a tu gusto." },
66 + { lead: "Añade un agente.", rest: "Integra tus propias herramientas, modelos y flujos." },
67 + { lead: "Publica tu propia versión.", rest: "Alójala tú mismo o distribúyela como tuya." },
68 + ],
69 + stars: "{stars} estrellas",
70 + forkOnGithub: "Hacer fork en GitHub",
71 + browseSource: "Ver el código",
72 + ctaTitle: "Tus agentes merecen algo mejor que una terminal.",
73 + ctaSub:
74 + "T3 Code es gratis, de código abierto y rápido. Instálalo, conecta la herramienta que ya pagas y deja que tus agentes se pongan a trabajar.",
75 + otherPlatforms: "Otras plataformas",
76 + },
77 + download: {
78 + title: "Descarga T3 Code para macOS, Windows y Linux | T3 Code",
79 + description:
80 + "Descarga la app oficial de escritorio de T3 Code para macOS, Windows o Linux, o consigue las apps para iOS y Android. t3.codes es el único sitio oficial de descarga.",
81 + breadcrumb: "Descargar",
82 + heading: "Descargar T3 Code",
83 + channelLabel: "Canal de versiones",
84 + stable: "Estable",
85 + nightly: "Nightly",
86 + intelNote: "¿Tienes un Mac con Intel? {link}.",
87 + intelLink: "Descarga la versión x64",
88 + armNote: "¿Usas ARM? Descarga el {deb} o el {appimage} para arm64.",
89 + mobile: "Móvil",
90 + iphoneIpad: "iPhone y iPad",
91 + terminal: "Terminal",
92 + tryOnce: "O pruébalo sin instalar nada:",
93 + allBuilds: "Todas las compilaciones están en la {link}",
94 + releasesPage: "página de versiones de GitHub",
95 + builtAgo: "Compilada {age}",
96 + releasesFallback: "Versiones",
97 + },
98 +};
apps/marketing/src/i18n/fr.ts new
+101
@@ -0,0 +1,101 @@
1 +import type { Messages } from "./en";
2 +
3 +export const fr: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. Le poste de pilotage open source pour agents de codage.",
7 + socialImageAlt:
8 + "T3 Code : le poste de pilotage open source pour agents de codage, avec Claude Code, Codex, Cursor, OpenCode, Grok et Antigravity.",
9 + homeLabel: "Accueil T3 Code",
10 + download: "Télécharger",
11 + starsLabel: "Mettre une étoile à T3 Code sur GitHub, {stars} étoiles",
12 + githubStars: "{stars} étoiles sur GitHub",
13 + language: "Langue",
14 + mitLicensed: "Licence MIT",
15 + iosApp: "App iOS",
16 + androidApp: "App Android",
17 + terms: "Conditions",
18 + privacy: "Confidentialité",
19 + security: "Sécurité",
20 + },
21 + home: {
22 + title: "T3 Code | Le poste de pilotage open source pour agents de codage",
23 + description: "T3 Code. Le poste de pilotage open source pour agents de codage.",
24 + heroTitle: ["Le poste de pilotage", "open source", "pour agents de codage."],
25 + heroSub:
26 + "Orchestrez Claude Code, Codex, Antigravity, OpenCode, Cursor et Grok depuis une seule interface. Utilisez votre propre abonnement. Forkez tout le projet.",
27 + downloadForMac: "Télécharger pour macOS",
28 + downloadForWindows: "Télécharger pour Windows",
29 + downloadForLinux: "Télécharger pour Linux",
30 + sourceLink: "Volez notre code (légalement)",
31 + alsoOnPhone: "Aussi sur votre téléphone :",
32 + screenshotAlt:
33 + "T3 Code exécutant des sous-agents Claude, Codex, Muse et Gemini dans un même fil",
34 + endorsementsTitle: "Toléré par plus de {users} devs",
35 + endorsementsSub: "Certains en ont même parlé sur X.",
36 + endorsementsLabel: "Avis de développeurs",
37 + readPost: "Lire le post de {handle} sur X",
38 + harnessTitle: "Apportez votre abonnement",
39 + harnessBody:
40 + "T3 Code ne revend pas de tokens. Branchez Claude Code, Codex, Antigravity, OpenCode, Cursor ou Grok avec les identifiants que vous avez déjà. Nous les orchestrons, vous gardez votre abonnement.",
41 + googleSignIn: "Connexion Google",
42 + harnessPoints: [
43 + "Aucune clé revendue. Aucun quota imposé.",
44 + "Changez de modèle en cours de fil.",
45 + "De nouveaux agents chaque semaine.",
46 + ],
47 + gitVisualLabel:
48 + "Illustration du flux Git de T3 Code : relire un diff, commiter et pousser les modifications, puis ouvrir une pull request.",
49 + prReady: "Prête",
50 + prCommits: "3 commits",
51 + viewDiff: "Voir le diff",
52 + openPullRequest: "Ouvrir la pull request",
53 + commitPush: "Commit et push",
54 + gitTitle: "Un bouton pour commiter, pousser et ouvrir une PR.",
55 + gitBody:
56 + "Chaque fil d'agent écrit dans sa propre branche. Quand c'est bon, un bouton ouvre la PR sur GitHub avec un titre, une description et un changelog générés. Plus besoin de jongler dans le terminal.",
57 + gitPoints: [
58 + "Titres et descriptions de PR générés automatiquement",
59 + "Revue du diff intégrée avant de pousser",
60 + "PR en brouillon, empilées ou amendées",
61 + "Fonctionne avec votre authentification GitHub actuelle",
62 + ],
63 + openTitle: "Si quelque chose ne vous plaît pas, forkez-le.",
64 + openPoints: [
65 + { lead: "Changez l'interface.", rest: "Personnalisez chaque écran à votre goût." },
66 + { lead: "Ajoutez un agent.", rest: "Branchez vos propres outils, modèles et workflows." },
67 + {
68 + lead: "Publiez votre propre version.",
69 + rest: "Hébergez-le vous-même ou distribuez-le sous votre nom.",
70 + },
71 + ],
72 + stars: "{stars} étoiles",
73 + forkOnGithub: "Forker sur GitHub",
74 + browseSource: "Parcourir le code",
75 + ctaTitle: "Vos agents méritent mieux qu'un terminal.",
76 + ctaSub:
77 + "T3 Code est gratuit, open source et rapide. Installez-le, branchez l'outil auquel vous êtes déjà abonné et laissez vos agents se mettre au travail.",
78 + otherPlatforms: "Autres plateformes",
79 + },
80 + download: {
81 + title: "Télécharger T3 Code pour macOS, Windows et Linux | T3 Code",
82 + description:
83 + "Téléchargez l'app de bureau officielle T3 Code pour macOS, Windows ou Linux, ou les apps iOS et Android. t3.codes est le seul site de téléchargement officiel.",
84 + breadcrumb: "Télécharger",
85 + heading: "Télécharger T3 Code",
86 + channelLabel: "Canal de publication",
87 + stable: "Stable",
88 + nightly: "Nightly",
89 + intelNote: "Sur un Mac Intel ? {link}.",
90 + intelLink: "Téléchargez la version x64",
91 + armNote: "Sur ARM ? Téléchargez le {deb} ou l'{appimage} arm64.",
92 + mobile: "Mobile",
93 + iphoneIpad: "iPhone et iPad",
94 + terminal: "Terminal",
95 + tryOnce: "Ou essayez-le sans rien installer :",
96 + allBuilds: "Toutes les versions sont sur la {link}",
97 + releasesPage: "page des releases GitHub",
98 + builtAgo: "Compilé {age}",
99 + releasesFallback: "Versions",
100 + },
101 +};
apps/marketing/src/i18n/index.ts new
+24
@@ -0,0 +1,24 @@
1 +import { de } from "./de";
2 +import { en, type Messages } from "./en";
3 +import { es } from "./es";
4 +import { fr } from "./fr";
5 +import { ja } from "./ja";
6 +import { ko } from "./ko";
7 +import type { Locale } from "./locales";
8 +import { ptBR } from "./pt-BR";
9 +import { ru } from "./ru";
10 +import { zh } from "./zh";
11 +
12 +const MESSAGES: Record<Locale, Messages> = {
13 + en,
14 + es,
15 + "zh-Hans": zh,
16 + "pt-BR": ptBR,
17 + fr,
18 + de,
19 + ja,
20 + ko,
21 + ru,
22 +};
23 +
24 +export const messagesFor = (locale: Locale): Messages => MESSAGES[locale];
apps/marketing/src/i18n/ja.ts new
+102
@@ -0,0 +1,102 @@
1 +import type { Messages } from "./en";
2 +
3 +export const ja: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription:
7 + "T3 Code。コーディングエージェントのためのオープンソースのコントロールプレーン。",
8 + socialImageAlt:
9 + "T3 Code:コーディングエージェントのためのオープンソースのコントロールプレーン。Claude Code、Codex、Cursor、OpenCode、Grok、Antigravity に対応。",
10 + homeLabel: "T3 Code ホーム",
11 + download: "ダウンロード",
12 + starsLabel: "GitHub で T3 Code にスターを付ける({stars} スター)",
13 + githubStars: "GitHub スター {stars}",
14 + language: "言語",
15 + mitLicensed: "MIT ライセンス",
16 + iosApp: "iOS アプリ",
17 + androidApp: "Android アプリ",
18 + terms: "利用規約",
19 + privacy: "プライバシー",
20 + security: "セキュリティ",
21 + },
22 + home: {
23 + title: "T3 Code | コーディングエージェントのためのオープンソースのコントロールプレーン",
24 + description: "T3 Code。コーディングエージェントのためのオープンソースのコントロールプレーン。",
25 + heroTitle: ["コーディングエージェントの", "オープンソース", "コントロールプレーン。"],
26 + heroSub:
27 + "Claude Code、Codex、Antigravity、OpenCode、Cursor、Grok をひとつの画面からオーケストレーション。サブスクリプションは手持ちのものをそのまま。まるごとフォークも自由です。",
28 + downloadForMac: "macOS 版をダウンロード",
29 + downloadForWindows: "Windows 版をダウンロード",
30 + downloadForLinux: "Linux 版をダウンロード",
31 + sourceLink: "コードを盗もう(合法的に)",
32 + alsoOnPhone: "スマホでも使えます:",
33 + screenshotAlt:
34 + "ひとつのスレッドで Claude、Codex、Muse、Gemini のサブエージェントを動かす T3 Code",
35 + endorsementsTitle: "{users} 人以上の開発者が我慢して使っています",
36 + endorsementsSub: "ツイートまでしてくれた人もいます。",
37 + endorsementsLabel: "開発者の声",
38 + readPost: "X で {handle} の投稿を読む",
39 + harnessTitle: "サブスクは持ち込みで",
40 + harnessBody:
41 + "T3 Code はトークンを転売しません。Claude Code、Codex、Antigravity、OpenCode、Cursor、Grok を、すでに持っている認証情報でつなぐだけ。オーケストレーションは私たちに任せて、プランは今のままで。",
42 + googleSignIn: "Google でサインイン",
43 + harnessPoints: [
44 + "キーの転売なし。使用量の上限なし。",
45 + "スレッドの途中でモデルを切り替え。",
46 + "対応エージェントは毎週追加。",
47 + ],
48 + gitVisualLabel:
49 + "T3 Code の Git ワークフローの図:diff を確認し、変更をコミットしてプッシュし、プルリクエストを作成する。",
50 + prReady: "準備完了",
51 + prCommits: "3 コミット",
52 + viewDiff: "diff を表示",
53 + openPullRequest: "プルリクエストを作成",
54 + commitPush: "コミット&プッシュ",
55 + gitTitle: "ボタンひとつでコミット、プッシュ、PR 作成。",
56 + gitBody:
57 + "エージェントのスレッドはそれぞれ専用のブランチに書き込みます。仕上がったら、ボタンひとつで GitHub に PR を作成。タイトル、本文、変更履歴も自動で生成されます。ターミナルでの面倒な操作は不要です。",
58 + gitPoints: [
59 + "PR のタイトルと本文を自動生成",
60 + "プッシュ前にインラインで diff をレビュー",
61 + "ドラフト PR、スタック PR、PR の修正",
62 + "既存の GitHub 認証をそのまま利用",
63 + ],
64 + openTitle: "気に入らなければ、フォークすればいい。",
65 + openPoints: [
66 + { lead: "UI を変える。", rest: "あらゆる画面を好みのスタイルに。" },
67 + { lead: "エージェントを追加する。", rest: "独自のツール、モデル、フローを組み込めます。" },
68 + {
69 + lead: "自分のビルドを出す。",
70 + rest: "セルフホストも、自分のアプリとして配布するのも自由です。",
71 + },
72 + ],
73 + stars: "{stars} スター",
74 + forkOnGithub: "GitHub でフォーク",
75 + browseSource: "ソースを見る",
76 + ctaTitle: "あなたのエージェントに、ターミナルだけではもったいない。",
77 + ctaSub:
78 + "T3 Code は無料、オープンソース、そして高速。インストールして、契約中のツールをつなぐだけ。あとはエージェントにおまかせ。",
79 + otherPlatforms: "ほかのプラットフォーム",
80 + },
81 + download: {
82 + title: "T3 Code をダウンロード(macOS、Windows、Linux)| T3 Code",
83 + description:
84 + "公式の T3 Code デスクトップアプリ(macOS、Windows、Linux)や、iOS・Android アプリをダウンロードできます。公式のダウンロードサイトは t3.codes だけです。",
85 + breadcrumb: "ダウンロード",
86 + heading: "T3 Code をダウンロード",
87 + channelLabel: "リリースチャンネル",
88 + stable: "安定版",
89 + nightly: "Nightly",
90 + intelNote: "Intel Mac をお使いですか? {link}。",
91 + intelLink: "x64 版をダウンロード",
92 + armNote: "ARM をお使いですか? arm64 版の {deb} または {appimage} をダウンロード。",
93 + mobile: "モバイル",
94 + iphoneIpad: "iPhone と iPad",
95 + terminal: "ターミナル",
96 + tryOnce: "インストールせずに試すなら:",
97 + allBuilds: "すべてのビルドは {link} にあります",
98 + releasesPage: "GitHub のリリースページ",
99 + builtAgo: "{age}にビルド",
100 + releasesFallback: "リリース",
101 + },
102 +};
apps/marketing/src/i18n/ko.ts new
+97
@@ -0,0 +1,97 @@
1 +import type { Messages } from "./en";
2 +
3 +export const ko: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. 코딩 에이전트를 위한 오픈 소스 컨트롤 플레인.",
7 + socialImageAlt:
8 + "T3 Code: 코딩 에이전트를 위한 오픈 소스 컨트롤 플레인. Claude Code, Codex, Cursor, OpenCode, Grok, Antigravity 지원.",
9 + homeLabel: "T3 Code 홈",
10 + download: "다운로드",
11 + starsLabel: "GitHub에서 T3 Code에 스타 주기, 현재 스타 {stars}",
12 + githubStars: "GitHub 스타 {stars}",
13 + language: "언어",
14 + mitLicensed: "MIT 라이선스",
15 + iosApp: "iOS 앱",
16 + androidApp: "Android 앱",
17 + terms: "이용약관",
18 + privacy: "개인정보처리방침",
19 + security: "보안",
20 + },
21 + home: {
22 + title: "T3 Code | 코딩 에이전트를 위한 오픈 소스 컨트롤 플레인",
23 + description: "T3 Code. 코딩 에이전트를 위한 오픈 소스 컨트롤 플레인.",
24 + heroTitle: ["코딩 에이전트용", "오픈 소스", "컨트롤 플레인."],
25 + heroSub:
26 + "Claude Code, Codex, Antigravity, OpenCode, Cursor, Grok을 한 화면에서 오케스트레이션하세요. 구독은 쓰던 그대로. 통째로 포크하세요.",
27 + downloadForMac: "macOS용 다운로드",
28 + downloadForWindows: "Windows용 다운로드",
29 + downloadForLinux: "Linux용 다운로드",
30 + sourceLink: "코드 훔쳐 가기(합법적으로)",
31 + alsoOnPhone: "휴대폰에서도:",
32 + screenshotAlt: "하나의 스레드에서 Claude, Codex, Muse, Gemini 서브에이전트를 실행 중인 T3 Code",
33 + endorsementsTitle: "{users}명이 넘는 개발자가 참고 쓰는 중",
34 + endorsementsSub: "몇몇은 트윗까지 했습니다.",
35 + endorsementsLabel: "개발자 추천",
36 + readPost: "X에서 {handle}님의 게시물 읽기",
37 + harnessTitle: "쓰던 구독 그대로",
38 + harnessBody:
39 + "T3 Code는 토큰을 되팔지 않습니다. 이미 쓰고 있는 계정으로 Claude Code, Codex, Antigravity, OpenCode, Cursor, Grok을 연결하세요. 오케스트레이션은 저희가, 요금제는 그대로.",
40 + googleSignIn: "Google 로그인",
41 + harnessPoints: [
42 + "키 재판매 없음. 사용량 한도 없음.",
43 + "스레드 도중 모델 전환.",
44 + "매주 새 에이전트 추가.",
45 + ],
46 + gitVisualLabel:
47 + "T3 Code Git 워크플로 그림: diff를 검토하고, 변경 사항을 커밋 및 푸시하고, 풀 리퀘스트를 엽니다.",
48 + prReady: "준비됨",
49 + prCommits: "커밋 3개",
50 + viewDiff: "diff 보기",
51 + openPullRequest: "풀 리퀘스트 열기",
52 + commitPush: "커밋 & 푸시",
53 + gitTitle: "버튼 하나로 커밋, 푸시, PR까지.",
54 + gitBody:
55 + "에이전트 스레드마다 별도 브랜치에서 작업합니다. 결과가 마음에 들면 버튼 하나로 GitHub에 PR이 열리고, 제목과 본문, 변경 로그까지 자동으로 생성됩니다. 터미널에서 씨름할 필요가 없습니다.",
56 + gitPoints: [
57 + "PR 제목과 본문 자동 생성",
58 + "푸시 전에 인라인 diff 리뷰",
59 + "드래프트 PR, 스택 PR, PR 수정",
60 + "기존 GitHub 인증 그대로 사용",
61 + ],
62 + openTitle: "마음에 안 들면 포크하세요.",
63 + openPoints: [
64 + { lead: "UI를 바꾸세요.", rest: "모든 화면을 취향대로 꾸밀 수 있습니다." },
65 + { lead: "에이전트를 추가하세요.", rest: "나만의 도구, 모델, 워크플로를 연결하세요." },
66 + { lead: "나만의 빌드를 만드세요.", rest: "직접 호스팅하거나 내 이름으로 배포하세요." },
67 + ],
68 + stars: "스타 {stars}",
69 + forkOnGithub: "GitHub에서 포크",
70 + browseSource: "소스 보기",
71 + ctaTitle: "에이전트를 터미널에만 두기엔 아깝습니다.",
72 + ctaSub:
73 + "T3 Code는 무료이고, 오픈 소스이며, 빠릅니다. 설치하고, 이미 구독 중인 서비스를 연결한 뒤, 에이전트에게 일을 맡기세요.",
74 + otherPlatforms: "다른 플랫폼",
75 + },
76 + download: {
77 + title: "macOS, Windows, Linux용 T3 Code 다운로드 | T3 Code",
78 + description:
79 + "macOS, Windows, Linux용 공식 T3 Code 데스크톱 앱을 다운로드하거나 iOS 및 Android 앱을 받으세요. 공식 다운로드 사이트는 t3.codes뿐입니다.",
80 + breadcrumb: "다운로드",
81 + heading: "T3 Code 다운로드",
82 + channelLabel: "릴리스 채널",
83 + stable: "안정판",
84 + nightly: "Nightly",
85 + intelNote: "Intel Mac을 쓰시나요? {link}.",
86 + intelLink: "x64 빌드 다운로드",
87 + armNote: "ARM을 쓰시나요? arm64 {deb} 또는 {appimage}를 다운로드하세요.",
88 + mobile: "모바일",
89 + iphoneIpad: "iPhone & iPad",
90 + terminal: "터미널",
91 + tryOnce: "설치 없이 한 번 실행해 보려면:",
92 + allBuilds: "모든 빌드는 {link}에 있습니다",
93 + releasesPage: "GitHub 릴리스 페이지",
94 + builtAgo: "{age} 빌드됨",
95 + releasesFallback: "릴리스",
96 + },
97 +};
apps/marketing/src/i18n/locales.ts new
+51
@@ -0,0 +1,51 @@
1 +// `code` is Astro's locale code and the BCP 47 tag for `<html lang>` and hreflang. `path` is the URL
2 +// segment. pt-BR lives at `/pt-br`: lowercase like every other path on the site, with the region
3 +// kept so a future pt-PT can sit beside it. zh is Simplified Chinese.
4 +export const LOCALES = [
5 + { code: "en", path: "", name: "English" },
6 + { code: "es", path: "es", name: "Español" },
7 + { code: "zh-Hans", path: "zh", name: "简体中文" },
8 + { code: "pt-BR", path: "pt-br", name: "Português (Brasil)" },
9 + { code: "fr", path: "fr", name: "Français" },
10 + { code: "de", path: "de", name: "Deutsch" },
11 + { code: "ja", path: "ja", name: "日本語" },
12 + { code: "ko", path: "ko", name: "한국어" },
13 + { code: "ru", path: "ru", name: "Русский" },
14 +] as const;
15 +
16 +export type Locale = (typeof LOCALES)[number]["code"];
17 +
18 +export const DEFAULT_LOCALE: Locale = "en";
19 +
20 +/** Pages that exist in every locale. Legal pages, the 404, and /95 stay English-only. */
21 +export const LOCALIZED_PATHS = ["/", "/download"] as const;
22 +
23 +export type LocalizedPath = (typeof LOCALIZED_PATHS)[number];
24 +
25 +export const isLocalizedPath = (path: string): path is LocalizedPath =>
26 + (LOCALIZED_PATHS as ReadonlyArray<string>).includes(path);
27 +
28 +export const localeInfo = (locale: Locale) => LOCALES.find((entry) => entry.code === locale)!;
29 +
30 +export const localizedHref = (locale: Locale, path: LocalizedPath): string => {
31 + const prefix = localeInfo(locale).path;
32 + if (!prefix) return path;
33 + return path === "/" ? `/${prefix}` : `/${prefix}${path}`;
34 +};
35 +
36 +/** `getStaticPaths` entries for a `[...locale]` route: English at the root, the rest prefixed. */
37 +export const localeStaticPaths = () =>
38 + LOCALES.map((entry) => ({
39 + params: { locale: entry.path || undefined },
40 + props: { locale: entry.code as Locale },
41 + }));
42 +
43 +/** Splits `"On ARM? {deb} or {appimage}."` so callers can render each `{key}` as markup. */
44 +export const templateParts = (template: string): Array<string | { key: string }> =>
45 + template
46 + .split(/(\{\w+\})/)
47 + .filter(Boolean)
48 + .map((part) => (/^\{\w+\}$/.test(part) ? { key: part.slice(1, -1) } : part));
49 +
50 +export const fillTemplate = (template: string, values: Record<string, string>): string =>
51 + template.replace(/\{(\w+)\}/g, (match, key: string) => values[key] ?? match);
apps/marketing/src/i18n/pt-BR.ts new
+101
@@ -0,0 +1,101 @@
1 +import type { Messages } from "./en";
2 +
3 +export const ptBR: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. O painel de controle open source para agentes de programação.",
7 + socialImageAlt:
8 + "T3 Code: o painel de controle open source para agentes de programação, com Claude Code, Codex, Cursor, OpenCode, Grok e Antigravity.",
9 + homeLabel: "Página inicial do T3 Code",
10 + download: "Baixar",
11 + starsLabel: "Dê uma estrela ao T3 Code no GitHub, {stars} estrelas",
12 + githubStars: "{stars} estrelas no GitHub",
13 + language: "Idioma",
14 + mitLicensed: "Licença MIT",
15 + iosApp: "App para iOS",
16 + androidApp: "App para Android",
17 + terms: "Termos",
18 + privacy: "Privacidade",
19 + security: "Segurança",
20 + },
21 + home: {
22 + title: "T3 Code | O painel de controle open source para agentes de programação",
23 + description: "T3 Code. O painel de controle open source para agentes de programação.",
24 + heroTitle: ["O painel de controle", "open source para", "agentes de código."],
25 + heroSub:
26 + "Orquestre Claude Code, Codex, Antigravity, OpenCode, Cursor e Grok em um só lugar. Use a sua própria assinatura. Faça um fork do projeto inteiro.",
27 + downloadForMac: "Baixar para macOS",
28 + downloadForWindows: "Baixar para Windows",
29 + downloadForLinux: "Baixar para Linux",
30 + sourceLink: "Roube nosso código (legalmente)",
31 + alsoOnPhone: "Também no seu celular:",
32 + screenshotAlt:
33 + "T3 Code executando subagentes do Claude, Codex, Muse e Gemini em uma mesma thread",
34 + endorsementsTitle: "Tolerado por mais de {users} devs",
35 + endorsementsSub: "Alguns até tuitaram sobre isso.",
36 + endorsementsLabel: "Depoimentos de desenvolvedores",
37 + readPost: "Ler o post de {handle} no X",
38 + harnessTitle: "Traga sua própria assinatura",
39 + harnessBody:
40 + "O T3 Code não revende tokens. Conecte Claude Code, Codex, Antigravity, OpenCode, Cursor ou Grok com as credenciais que você já tem. Nós orquestramos, você mantém seu plano.",
41 + googleSignIn: "Login com Google",
42 + harnessPoints: [
43 + "Sem revenda de chaves. Sem limite de cota.",
44 + "Troque de modelo no meio da thread.",
45 + "Novos agentes toda semana.",
46 + ],
47 + gitVisualLabel:
48 + "Ilustração do fluxo de Git no T3 Code: revisar um diff, fazer commit e push das alterações e abrir um pull request.",
49 + prReady: "Pronto",
50 + prCommits: "3 commits",
51 + viewDiff: "Ver diff",
52 + openPullRequest: "Abrir pull request",
53 + commitPush: "Commit e push",
54 + gitTitle: "Um botão para fazer commit, push e abrir um PR.",
55 + gitBody:
56 + "Cada thread de agente escreve no seu próprio branch. Quando estiver bom, um botão abre o PR no GitHub com título, descrição e changelog gerados. Sem malabarismo no terminal.",
57 + gitPoints: [
58 + "Títulos e descrições de PR gerados automaticamente",
59 + "Revisão do diff inline antes do push",
60 + "PRs em rascunho, stacks de PRs e amend",
61 + "Funciona com a sua autenticação atual do GitHub",
62 + ],
63 + openTitle: "Se não gostar de algo, faça um fork.",
64 + openPoints: [
65 + { lead: "Mude a interface.", rest: "Redesenhe cada tela do seu jeito." },
66 + { lead: "Adicione um agente.", rest: "Integre suas próprias ferramentas, modelos e fluxos." },
67 + {
68 + lead: "Lance sua própria versão.",
69 + rest: "Hospede por conta própria ou distribua como sua.",
70 + },
71 + ],
72 + stars: "{stars} estrelas",
73 + forkOnGithub: "Fazer fork no GitHub",
74 + browseSource: "Ver o código",
75 + ctaTitle: "Seus agentes merecem mais do que um terminal.",
76 + ctaSub:
77 + "O T3 Code é gratuito, open source e rápido. Instale, conecte a assinatura que você já tem e deixe seus agentes trabalharem.",
78 + otherPlatforms: "Outras plataformas",
79 + },
80 + download: {
81 + title: "Baixe o T3 Code para macOS, Windows e Linux | T3 Code",
82 + description:
83 + "Baixe o app oficial de desktop do T3 Code para macOS, Windows ou Linux, ou os apps para iOS e Android. t3.codes é o único site oficial de download.",
84 + breadcrumb: "Baixar",
85 + heading: "Baixar o T3 Code",
86 + channelLabel: "Canal de versões",
87 + stable: "Estável",
88 + nightly: "Nightly",
89 + intelNote: "Tem um Mac com Intel? {link}.",
90 + intelLink: "Baixe a versão x64",
91 + armNote: "Usa ARM? Baixe o {deb} ou o {appimage} para arm64.",
92 + mobile: "Mobile",
93 + iphoneIpad: "iPhone e iPad",
94 + terminal: "Terminal",
95 + tryOnce: "Ou experimente uma vez sem instalar:",
96 + allBuilds: "Todas as versões estão na {link}",
97 + releasesPage: "página de releases do GitHub",
98 + builtAgo: "Compilado {age}",
99 + releasesFallback: "Versões",
100 + },
101 +};
apps/marketing/src/i18n/ru.ts new
+97
@@ -0,0 +1,97 @@
1 +import type { Messages } from "./en";
2 +
3 +export const ru: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code. Открытый пульт управления ИИ-агентами для программирования.",
7 + socialImageAlt:
8 + "T3 Code: открытый пульт управления ИИ-агентами для программирования. Claude Code, Codex, Cursor, OpenCode, Grok и Antigravity.",
9 + homeLabel: "Главная страница T3 Code",
10 + download: "Скачать",
11 + starsLabel: "Поставить звезду T3 Code на GitHub, звёзд: {stars}",
12 + githubStars: "{stars} звёзд на GitHub",
13 + language: "Язык",
14 + mitLicensed: "Лицензия MIT",
15 + iosApp: "Приложение для iOS",
16 + androidApp: "Приложение для Android",
17 + terms: "Условия",
18 + privacy: "Конфиденциальность",
19 + security: "Безопасность",
20 + },
21 + home: {
22 + title: "T3 Code | Открытый пульт управления ИИ-агентами для программирования",
23 + description: "T3 Code. Открытый пульт управления ИИ-агентами для программирования.",
24 + heroTitle: ["Открытый пульт", "управления", "ИИ-агентами для кода."],
25 + heroSub:
26 + "Управляйте Claude Code, Codex, Antigravity, OpenCode, Cursor и Grok из одного окна. Пользуйтесь своей подпиской. Форкайте всё целиком.",
27 + downloadForMac: "Скачать для macOS",
28 + downloadForWindows: "Скачать для Windows",
29 + downloadForLinux: "Скачать для Linux",
30 + sourceLink: "Украдите наш код (легально)",
31 + alsoOnPhone: "Есть и для телефона:",
32 + screenshotAlt: "T3 Code запускает субагентов Claude, Codex, Muse и Gemini в одном треде",
33 + endorsementsTitle: "Нас терпят более {users} разработчиков",
34 + endorsementsSub: "Некоторые даже написали об этом в X.",
35 + endorsementsLabel: "Отзывы разработчиков",
36 + readPost: "Читать пост {handle} в X",
37 + harnessTitle: "Со своей подпиской",
38 + harnessBody:
39 + "T3 Code не перепродаёт токены. Подключайте Claude Code, Codex, Antigravity, OpenCode, Cursor или Grok с учётными данными, которые у вас уже есть. Мы управляем агентами, тариф остаётся вашим.",
40 + googleSignIn: "Вход через Google",
41 + harnessPoints: [
42 + "Никакой перепродажи ключей. Никаких лимитов.",
43 + "Меняйте модель прямо посреди треда.",
44 + "Новые агенты каждую неделю.",
45 + ],
46 + gitVisualLabel:
47 + "Схема работы с Git в T3 Code: просмотр диффа, коммит и пуш изменений, создание пул-реквеста.",
48 + prReady: "Готово",
49 + prCommits: "3 коммита",
50 + viewDiff: "Открыть дифф",
51 + openPullRequest: "Создать пул-реквест",
52 + commitPush: "Коммит и пуш",
53 + gitTitle: "Одна кнопка для коммита, пуша и PR.",
54 + gitBody:
55 + "Каждый тред агента работает в своей ветке. Когда всё готово, одна кнопка открывает PR на GitHub со сгенерированным заголовком, описанием и списком изменений. Никаких плясок с терминалом.",
56 + gitPoints: [
57 + "Автоматические заголовки и описания PR",
58 + "Просмотр диффа перед пушем",
59 + "Черновые PR, стеки PR, правки PR",
60 + "Работает с вашей текущей авторизацией GitHub",
61 + ],
62 + openTitle: "Что-то не нравится? Форкните.",
63 + openPoints: [
64 + { lead: "Измените интерфейс.", rest: "Перерисуйте каждый экран на свой вкус." },
65 + { lead: "Добавьте агента.", rest: "Подключите свои инструменты, модели и сценарии." },
66 + { lead: "Выпустите свою сборку.", rest: "Хостите сами или распространяйте как свою." },
67 + ],
68 + stars: "{stars} звёзд",
69 + forkOnGithub: "Форкнуть на GitHub",
70 + browseSource: "Исходный код",
71 + ctaTitle: "Ваши агенты заслуживают лучшего, чем терминал.",
72 + ctaSub:
73 + "T3 Code бесплатный, открытый и быстрый. Установите его, подключите подписку, за которую уже платите, и дайте агентам поработать.",
74 + otherPlatforms: "Другие платформы",
75 + },
76 + download: {
77 + title: "Скачать T3 Code для macOS, Windows и Linux | T3 Code",
78 + description:
79 + "Скачайте официальное десктопное приложение T3 Code для macOS, Windows или Linux либо приложения для iOS и Android. Единственный официальный сайт для загрузки: t3.codes.",
80 + breadcrumb: "Скачать",
81 + heading: "Скачать T3 Code",
82 + channelLabel: "Канал релизов",
83 + stable: "Стабильный",
84 + nightly: "Nightly",
85 + intelNote: "Mac на Intel? {link}.",
86 + intelLink: "Скачайте сборку x64",
87 + armNote: "На ARM? Скачайте {deb} или {appimage} для arm64.",
88 + mobile: "Телефон",
89 + iphoneIpad: "iPhone и iPad",
90 + terminal: "Терминал",
91 + tryOnce: "Или попробуйте без установки:",
92 + allBuilds: "Все сборки на {link}",
93 + releasesPage: "странице релизов GitHub",
94 + builtAgo: "Собрано {age}",
95 + releasesFallback: "Релизы",
96 + },
97 +};
apps/marketing/src/i18n/zh.ts new
+95
@@ -0,0 +1,95 @@
1 +import type { Messages } from "./en";
2 +
3 +export const zh: Messages = {
4 + layout: {
5 + defaultTitle: "T3 Code",
6 + defaultDescription: "T3 Code:面向编程智能体的开源控制中心。",
7 + socialImageAlt:
8 + "T3 Code:面向编程智能体的开源控制中心,支持 Claude Code、Codex、Cursor、OpenCode、Grok 和 Antigravity。",
9 + homeLabel: "T3 Code 首页",
10 + download: "下载",
11 + starsLabel: "在 GitHub 上为 T3 Code 加星标,已有 {stars} 个星标",
12 + githubStars: "{stars} GitHub 星标",
13 + language: "语言",
14 + mitLicensed: "MIT 许可",
15 + iosApp: "iOS 应用",
16 + androidApp: "Android 应用",
17 + terms: "条款",
18 + privacy: "隐私",
19 + security: "安全",
20 + },
21 + home: {
22 + title: "T3 Code | 面向编程智能体的开源控制中心",
23 + description: "T3 Code:面向编程智能体的开源控制中心。",
24 + heroTitle: ["开源的", "编程智能体", "控制中心。"],
25 + heroSub:
26 + "在同一个界面里调度 Claude Code、Codex、Antigravity、OpenCode、Cursor 和 Grok。用你自己的订阅。整个项目都可以 fork。",
27 + downloadForMac: "下载 macOS 版",
28 + downloadForWindows: "下载 Windows 版",
29 + downloadForLinux: "下载 Linux 版",
30 + sourceLink: "来偷我们的代码(合法的)",
31 + alsoOnPhone: "手机上也能用:",
32 + screenshotAlt: "T3 Code 在同一个线程中运行 Claude、Codex、Muse 和 Gemini 子智能体",
33 + endorsementsTitle: "超过 {users} 名开发者表示还能忍",
34 + endorsementsSub: "有些人甚至发推夸了它。",
35 + endorsementsLabel: "开发者评价",
36 + readPost: "在 X 上阅读 {handle} 的帖子",
37 + harnessTitle: "自带订阅",
38 + harnessBody:
39 + "T3 Code 不转售 token。用你现有的凭据接入 Claude Code、Codex、Antigravity、OpenCode、Cursor 或 Grok。我们负责调度,你的套餐还是你的。",
40 + googleSignIn: "Google 登录",
41 + harnessPoints: [
42 + "不转售密钥,不设额度上限。",
43 + "线程进行中也能切换模型。",
44 + "每周都有新的智能体接入。",
45 + ],
46 + gitVisualLabel: "T3 Code Git 工作流示意图:审查 diff、提交并推送更改、创建 PR。",
47 + prReady: "就绪",
48 + prCommits: "3 个提交",
49 + viewDiff: "查看 diff",
50 + openPullRequest: "创建 PR",
51 + commitPush: "提交并推送",
52 + gitTitle: "一键提交、推送并创建 PR。",
53 + gitBody:
54 + "每个智能体线程都写入自己的分支。满意之后,一键在 GitHub 上创建 PR,标题、描述和更新日志都会自动生成。不用在终端里来回折腾。",
55 + gitPoints: [
56 + "自动生成 PR 标题和描述",
57 + "推送前就地审查 diff",
58 + "草稿 PR、堆叠 PR、修改 PR",
59 + "沿用你现有的 GitHub 授权",
60 + ],
61 + openTitle: "哪里不喜欢,就 fork 它。",
62 + openPoints: [
63 + { lead: "改 UI。", rest: "按你的喜好重新设计每个界面。" },
64 + { lead: "加智能体。", rest: "接入你自己的工具、模型和工作流。" },
65 + { lead: "发布你自己的版本。", rest: "自行托管,或以你自己的名义分发。" },
66 + ],
67 + stars: "{stars} 星标",
68 + forkOnGithub: "在 GitHub 上 fork",
69 + browseSource: "浏览源码",
70 + ctaTitle: "终端配不上你的智能体。",
71 + ctaSub: "T3 Code 免费、开源、速度快。安装它,接入你已经订阅的智能体,然后让它们开工。",
72 + otherPlatforms: "其他平台",
73 + },
74 + download: {
75 + title: "下载 T3 Code:macOS、Windows 和 Linux 版 | T3 Code",
76 + description:
77 + "下载 T3 Code 官方桌面应用(macOS、Windows 或 Linux),或获取 iOS 和 Android 应用。t3.codes 是唯一的官方下载网站。",
78 + breadcrumb: "下载",
79 + heading: "下载 T3 Code",
80 + channelLabel: "发布通道",
81 + stable: "稳定版",
82 + nightly: "Nightly 版",
83 + intelNote: "使用 Intel 芯片的 Mac?{link}。",
84 + intelLink: "下载 x64 版本",
85 + armNote: "ARM 架构?下载 arm64 版 {deb} 或 {appimage}。",
86 + mobile: "移动端",
87 + iphoneIpad: "iPhone 和 iPad",
88 + terminal: "终端",
89 + tryOnce: "或者无需安装,直接试用一次:",
90 + allBuilds: "所有版本都在 {link}上",
91 + releasesPage: "GitHub 发布页面",
92 + builtAgo: "{age}构建",
93 + releasesFallback: "发布页面",
94 + },
95 +};
apps/marketing/src/layouts/Layout.astro
+189 -16
@@ -10,6 +10,17 @@ import {
10 MARKETING_STATS,
11 } from "../lib/site";
12 import { type JsonLd, jsonLdGraph, organizationJsonLd, websiteJsonLd } from "../lib/seo";
13 +import { messagesFor } from "../i18n";
14 +import {
15 + DEFAULT_LOCALE,
16 + fillTemplate,
17 + LOCALES,
18 + type Locale,
19 + localeInfo,
20 + type LocalizedPath,
21 + localizedHref,
22 + templateParts,
23 +} from "../i18n/locales";
24
25 interface Props {
26 title?: string;
@@ -18,15 +29,31 @@ interface Props {
29 /** Page-specific schema.org nodes. Organization and WebSite are always included. */
30 jsonLd?: ReadonlyArray<JsonLd>;
31 noindex?: boolean;
32 + locale?: Locale;
33 + /** Set when the page exists in every locale; enables the language picker and hreflang links. */
34 + localizedPath?: LocalizedPath;
35 }
36
37 +const { locale = DEFAULT_LOCALE, localizedPath } = Astro.props;
38 +const t = messagesFor(locale).layout;
39 const {
24 - title = "T3 Code",
25 - description = "T3 Code. The open-source control plane for coding agents.",
40 + title = t.defaultTitle,
41 + description = t.defaultDescription,
42 pageClass,
43 jsonLd = [],
44 noindex = false,
45 } = Astro.props;
46 +const currentLocale = localeInfo(locale);
47 +const homeHref = localizedHref(locale, "/");
48 +const downloadHref = localizedHref(locale, "/download");
49 +// English-only pages still declare themselves, so every page carries hreflang and x-default.
50 +const alternates = localizedPath
51 + ? LOCALES.map((entry) => ({
52 + hreflang: entry.code,
53 + href: new URL(localizedHref(entry.code, localizedPath), Astro.site).href,
54 + }))
55 + : [{ hreflang: DEFAULT_LOCALE, href: new URL(Astro.url.pathname, Astro.site).href }];
56 +const defaultAlternate = alternates.find((entry) => entry.hreflang === DEFAULT_LOCALE)!;
57 const structuredData = jsonLdGraph([organizationJsonLd(), websiteJsonLd(), ...jsonLd]);
58
59 // Link unfurlers require a 1200x630 JPG/PNG at an absolute URL.
@@ -38,12 +65,11 @@ const socialImage = await getImage({
65 quality: 90,
66 });
67 const socialImageUrl = new URL(socialImage.src, Astro.site);
41 -const socialImageAlt =
42 - "T3 Code: the open-source control plane for coding agents, with Claude Code, Codex, Cursor, OpenCode, Grok and Antigravity.";
68 +const socialImageAlt = t.socialImageAlt;
69 const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
70 ---
71
46 -<html lang="en">
72 +<html lang={locale}>
73 <head>
74 <meta charset="UTF-8" />
75 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -69,6 +95,8 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
95 <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
96 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
97 <link rel="sitemap" type="application/xml" href="/sitemap.xml" />
98 + {alternates.map((entry) => <link rel="alternate" hreflang={entry.hreflang} href={entry.href} />)}
99 + <link rel="alternate" hreflang="x-default" href={defaultAlternate.href} />
100 <title>{title}</title>
101 <script is:inline type="application/ld+json" set:html={structuredData} />
102 </head>
@@ -76,7 +104,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
104 <div class:list={["page", pageClass]}>
105 <nav class="nav">
106 <div class="nav-inner">
79 - <a href="/" class="nav-brand" aria-label="T3 Code home">
107 + <a href={homeHref} class="nav-brand" aria-label={t.homeLabel}>
108 <svg
109 class="nav-brand-mark"
110 viewBox="15.5309 37 94.3941 56.96"
@@ -88,18 +116,48 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
116 <span class="nav-brand-name">Code</span>
117 </a>
118 <div class="nav-right">
91 - <a class="nav-link" href="/download">Download</a>
119 + {localizedPath && (
120 + <details class="nav-lang">
121 + <summary class="nav-lang-trigger" aria-label={t.language}>
122 + <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 010 18M12 3a14 14 0 000 18"/></svg>
123 + <span class="nav-lang-current">{currentLocale.name}</span>
124 + <svg class="nav-lang-chevron" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg>
125 + </summary>
126 + <ul class="nav-lang-menu">
127 + {LOCALES.map((entry) => (
128 + <li>
129 + <a
130 + href={localizedHref(entry.code, localizedPath)}
131 + hreflang={entry.code}
132 + lang={entry.code}
133 + aria-current={entry.code === locale ? "true" : undefined}
134 + >
135 + {entry.name}
136 + {entry.code === locale && (
137 + <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 12l5 5L20 6"/></svg>
138 + )}
139 + </a>
140 + </li>
141 + ))}
142 + </ul>
143 + </details>
144 + )}
145 + <a class="nav-link" href={downloadHref}>{t.download}</a>
146 <a
147 class="nav-stars"
148 href={GITHUB_REPOSITORY_URL}
149 target="_blank"
150 rel="noopener noreferrer"
97 - aria-label={`Star T3 Code on GitHub, ${MARKETING_STATS.githubStars} stars`}
151 + aria-label={fillTemplate(t.starsLabel, { stars: MARKETING_STATS.githubStars })}
152 >
153 <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
154 <path d="M12 2.3l2.9 5.88 6.49.94-4.7 4.58 1.11 6.47L12 17.12l-5.8 3.05 1.11-6.47-4.7-4.58 6.49-.94L12 2.3z"/>
155 </svg>
102 - <span><strong>{MARKETING_STATS.githubStars}</strong> GitHub stars</span>
156 + <span>
157 + {templateParts(t.githubStars).map((part) =>
158 + typeof part === "string" ? part : <strong>{MARKETING_STATS.githubStars}</strong>,
159 + )}
160 + </span>
161 </a>
162 </div>
163 </div>
@@ -123,17 +181,17 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
181 loading="lazy"
182 decoding="async"
183 />
126 - <span>&copy; {new Date().getFullYear()} T3 Tools Inc · MIT licensed</span>
184 + <span>&copy; {new Date().getFullYear()} T3 Tools Inc · {t.mitLicensed}</span>
185 </div>
186 <div class="footer-links">
187 <a href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">GitHub</a>
188 <a href="https://discord.gg/jn4EGJjrvv" target="_blank" rel="noopener noreferrer">Discord</a>
131 - <a href="/download">Download</a>
132 - <a href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">iOS app</a>
133 - <a href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">Android app</a>
134 - <a href="/terms-of-service">Terms</a>
135 - <a href="/privacy-policy">Privacy</a>
136 - <a href="/security-policy">Security</a>
189 + <a href={downloadHref}>{t.download}</a>
190 + <a href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">{t.iosApp}</a>
191 + <a href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">{t.androidApp}</a>
192 + <a href="/terms-of-service">{t.terms}</a>
193 + <a href="/privacy-policy">{t.privacy}</a>
194 + <a href="/security-policy">{t.security}</a>
195 </div>
196 </div>
197 </footer>
@@ -148,6 +206,23 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
206 };
207 window.addEventListener("scroll", onScroll, { passive: true });
208 onScroll();
209 +
210 + // <details> does not close itself on outside clicks or Escape.
211 + const picker = document.querySelector<HTMLDetailsElement>(".nav-lang");
212 + if (picker) {
213 + document.addEventListener("click", (event) => {
214 + if (picker.open && !picker.contains(event.target as Node)) picker.open = false;
215 + });
216 + picker.addEventListener("keydown", (event) => {
217 + if (event.key !== "Escape" || !picker.open) return;
218 + picker.open = false;
219 + picker.querySelector("summary")?.focus();
220 + });
221 + picker.addEventListener("focusout", (event) => {
222 + const next = event.relatedTarget as Node | null;
223 + if (next && !picker.contains(next)) picker.open = false;
224 + });
225 + }
226 </script>
227 </body>
228 </html>
@@ -429,6 +504,88 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
504 flex-shrink: 0;
505 }
506
507 + .nav-lang {
508 + position: relative;
509 + }
510 +
511 + .nav-lang-trigger {
512 + display: inline-flex;
513 + align-items: center;
514 + gap: 7px;
515 + height: 36px;
516 + padding: 0 10px;
517 + color: var(--fg-muted);
518 + font-size: 13px;
519 + letter-spacing: -0.01em;
520 + white-space: nowrap;
521 + list-style: none;
522 + cursor: pointer;
523 + transition: color 0.18s ease;
524 + }
525 +
526 + .nav-lang-trigger::-webkit-details-marker {
527 + display: none;
528 + }
529 +
530 + .nav-lang-trigger svg {
531 + flex-shrink: 0;
532 + }
533 +
534 + .nav-lang-trigger:hover,
535 + .nav-lang[open] .nav-lang-trigger {
536 + color: var(--fg);
537 + }
538 +
539 + .nav-lang-chevron {
540 + opacity: 0.6;
541 + transition: transform 0.18s ease;
542 + }
543 +
544 + .nav-lang[open] .nav-lang-chevron {
545 + transform: rotate(180deg);
546 + }
547 +
548 + .nav-lang-menu {
549 + position: absolute;
550 + top: calc(100% + 6px);
551 + right: 0;
552 + min-width: 200px;
553 + padding: 6px;
554 + list-style: none;
555 + border: 1px solid var(--border-strong);
556 + border-radius: var(--radius-sm);
557 + background: var(--bg-card);
558 + box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.65);
559 + animation: fade-in 0.18s ease both;
560 + }
561 +
562 + .nav-lang-menu a {
563 + display: flex;
564 + align-items: center;
565 + justify-content: space-between;
566 + gap: 12px;
567 + padding: 7px 10px;
568 + border-radius: 6px;
569 + color: var(--fg-muted);
570 + font-size: 13px;
571 + white-space: nowrap;
572 + transition: color 0.18s ease, background 0.18s ease;
573 + }
574 +
575 + .nav-lang-menu a:hover {
576 + color: var(--fg);
577 + background: rgba(255, 255, 255, 0.04);
578 + }
579 +
580 + .nav-lang-menu a[aria-current="true"] {
581 + color: var(--fg);
582 + }
583 +
584 + .nav-lang-menu svg {
585 + color: var(--ok);
586 + flex-shrink: 0;
587 + }
588 +
589 .main {
590 flex: 1;
591 display: flex;
@@ -494,6 +651,12 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
651 display: none;
652 }
653
654 + /* The trigger sits near the left on narrow screens, so the menu opens rightward. */
655 + .nav-lang-menu {
656 + right: auto;
657 + left: 0;
658 + }
659 +
660 .footer {
661 padding-bottom: max(32px, env(safe-area-inset-bottom));
662 }
@@ -518,6 +681,16 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
681 gap: 12px;
682 }
683
684 + .nav-lang-current,
685 + .nav-lang-chevron {
686 + display: none;
687 + }
688 +
689 + .nav-lang-trigger {
690 + height: 34px;
691 + padding: 0 8px;
692 + }
693 +
694 .nav-stars {
695 height: 34px;
696 gap: 6px;
apps/marketing/src/pages/[...locale]/download.astro renamed
+57 -32
@@ -1,12 +1,19 @@
1 ---
2 import type { ComponentProps } from "astro/types";
3 import { Image } from "astro:assets";
4 -import iconStable from "../assets/icon.webp";
5 -import iconNightly from "../assets/icon-nightly.webp";
6 -import Layout from "../layouts/Layout.astro";
7 -import { RELEASES_URL } from "../lib/releases";
8 -import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
9 -import { breadcrumbJsonLd, softwareJsonLd } from "../lib/seo";
4 +import iconStable from "../../assets/icon.webp";
5 +import iconNightly from "../../assets/icon-nightly.webp";
6 +import Layout from "../../layouts/Layout.astro";
7 +import { RELEASES_URL } from "../../lib/releases";
8 +import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../../lib/site";
9 +import { breadcrumbJsonLd, softwareJsonLd } from "../../lib/seo";
10 +import { messagesFor } from "../../i18n";
11 +import { localeStaticPaths, localizedHref, templateParts } from "../../i18n/locales";
12 +
13 +export const getStaticPaths = localeStaticPaths;
14 +
15 +const { locale } = Astro.props;
16 +const t = messagesFor(locale).download;
17
18 const imageProps = {
19 alt: "",
@@ -18,17 +25,25 @@ const imageProps = {
25 ---
26
27 <Layout
21 - title="Download T3 Code for macOS, Windows, and Linux | T3 Code"
22 - description="Download the official T3 Code desktop app for macOS, Windows, or Linux, or get the iOS and Android apps. t3.codes is the only official download site."
28 + title={t.title}
29 + description={t.description}
30 jsonLd={[
31 softwareJsonLd(),
32 breadcrumbJsonLd([
26 - { name: "T3 Code", path: "/" },
27 - { name: "Download", path: "/download" },
33 + { name: "T3 Code", path: localizedHref(locale, "/") },
34 + { name: t.breadcrumb, path: localizedHref(locale, "/download") },
35 ]),
36 ]}
37 + locale={locale}
38 + localizedPath="/download"
39 >
31 - <div class="download-page" id="download-page" data-channel="stable">
40 + <div
41 + class="download-page"
42 + id="download-page"
43 + data-channel="stable"
44 + data-built-ago={t.builtAgo}
45 + data-releases-fallback={t.releasesFallback}
46 + >
47 <header class="download-head">
48 <div class="sky" aria-hidden="true"></div>
49 <div class="head-inner" data-rise>
@@ -36,12 +51,12 @@ const imageProps = {
51 <Image class="head-icon--stable" src={iconStable} width={64} height={64} loading="eager" {...imageProps} />
52 <Image class="head-icon--nightly" src={iconNightly} width={64} height={64} loading="eager" {...imageProps} />
53 </span>
39 - <h1 class="heading">Download T3 Code</h1>
54 + <h1 class="heading">{t.heading}</h1>
55 </div>
41 - <div class="channel-toggle" role="tablist" aria-label="Release channel" data-rise style="--d:90ms">
56 + <div class="channel-toggle" role="tablist" aria-label={t.channelLabel} data-rise style="--d:90ms">
57 <span class="channel-thumb" aria-hidden="true"></span>
43 - <button type="button" role="tab" data-channel="stable" aria-selected="true">Stable</button>
44 - <button type="button" role="tab" data-channel="nightly" aria-selected="false">Nightly</button>
58 + <button type="button" role="tab" data-channel="stable" aria-selected="true">{t.stable}</button>
59 + <button type="button" role="tab" data-channel="nightly" aria-selected="false">{t.nightly}</button>
60 </div>
61 <p class="head-meta" data-rise style="--d:180ms">
62 <a id="changelog-link" class="changelog-link" href={RELEASES_URL} target="_blank" rel="noopener noreferrer">
@@ -69,7 +84,9 @@ const imageProps = {
84 </a>
85 </div>
86 <p class="intel-note">
72 - On an Intel Mac? <a data-asset="x64.dmg" href={RELEASES_URL}>Download the x64 build</a>.
87 + {templateParts(t.intelNote).map((part) =>
88 + typeof part === "string" ? part : <a data-asset="x64.dmg" href={RELEASES_URL}>{t.intelLink}</a>,
89 + )}
90 </p>
91 </section>
92
@@ -120,8 +137,11 @@ const imageProps = {
137 </a>
138 </div>
139 <p class="intel-note">
123 - On ARM? Download the arm64 <a data-asset="arm64.deb" href={RELEASES_URL}>.deb</a> or
124 - <a data-asset="arm64.AppImage" href={RELEASES_URL}>AppImage</a>.
140 + {templateParts(t.armNote).map((part) =>
141 + typeof part === "string" ? part
142 + : part.key === "deb" ? <a data-asset="arm64.deb" href={RELEASES_URL}>.deb</a>
143 + : <a data-asset="arm64.AppImage" href={RELEASES_URL}>AppImage</a>,
144 + )}
145 </p>
146 </section>
147
@@ -129,12 +149,12 @@ const imageProps = {
149 <section class="platform-section platform-section--mobile" data-rise style="--d:420ms">
150 <div class="platform-header">
151 <svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="7" y="2" width="10" height="20" rx="2.5"/><path d="M11 18.5h2"/></svg>
132 - <h2 class="platform-name">Mobile</h2>
152 + <h2 class="platform-name">{t.mobile}</h2>
153 </div>
154 <div class="download-cards">
155 <a class="download-card" href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">
156 <span class="card-text">
137 - <span class="card-arch">iPhone &amp; iPad</span>
157 + <span class="card-arch">{t.iphoneIpad}</span>
158 <span class="card-format">App Store</span>
159 </span>
160 </a>
@@ -150,29 +170,32 @@ const imageProps = {
170 <section class="platform-section platform-section--cli" data-rise style="--d:420ms">
171 <div class="platform-header">
172 <svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 7l5 5-5 5M12 17h7"/></svg>
153 - <h2 class="platform-name">Terminal</h2>
173 + <h2 class="platform-name">{t.terminal}</h2>
174 </div>
175 <code class="cli-line cli-line--stable">curl -fsSL https://t3.codes/install.sh | sh</code>
176 <code class="cli-line cli-line--stable">irm https://t3.codes/install.ps1 | iex</code>
177 <code class="cli-line cli-line--nightly">curl -fsSL https://t3.codes/install.sh | T3CODE_CHANNEL=nightly sh</code>
178 <code class="cli-line cli-line--nightly">$env:T3CODE_CHANNEL="nightly"; irm https://t3.codes/install.ps1 | iex</code>
159 - <p class="cli-note">Or try it once without installing:</p>
179 + <p class="cli-note">{t.tryOnce}</p>
180 <code class="cli-line cli-line--stable">npx t3@latest</code>
181 <code class="cli-line cli-line--nightly">npx t3@nightly</code>
182 </section>
183 </div>
184
185 <p class="releases-link" data-rise style="--d:480ms">
166 - All builds are on the{" "}
167 - <a id="releases-page-link" href={RELEASES_URL} target="_blank" rel="noopener noreferrer">
168 - GitHub releases page<span aria-hidden="true"> &#8599;</span>
169 - </a>
186 + {templateParts(t.allBuilds).map((part) =>
187 + typeof part === "string" ? part : (
188 + <a id="releases-page-link" href={RELEASES_URL} target="_blank" rel="noopener noreferrer">
189 + {t.releasesPage}<span aria-hidden="true"> &#8599;</span>
190 + </a>
191 + ),
192 + )}
193 </p>
194 </div>
195 </Layout>
196
197 <script>
175 - import { fetchLatestRelease, RELEASES_URL, NIGHTLY_RELEASES_URL, type ReleaseChannel } from "../lib/releases";
198 + import { fetchLatestRelease, RELEASES_URL, NIGHTLY_RELEASES_URL, type ReleaseChannel } from "../../lib/releases";
199
200 const page = document.getElementById("download-page")!;
201 const versionLabel = document.getElementById("version-label")!;
@@ -186,12 +209,14 @@ const imageProps = {
209 return new URLSearchParams(location.search).get("channel") === "nightly" ? "nightly" : "stable";
210 }
211
212 + const relativeTime = new Intl.RelativeTimeFormat(document.documentElement.lang);
213 +
214 function relativeAge(iso: string): string {
215 const minutes = Math.max(1, Math.round((Date.now() - Date.parse(iso)) / 60_000));
191 - if (minutes < 60) return `${minutes} minutes ago`;
216 + if (minutes < 60) return relativeTime.format(-minutes, "minute");
217 const hours = Math.round(minutes / 60);
193 - if (hours < 48) return `${hours} hours ago`;
194 - return `${Math.round(hours / 24)} days ago`;
218 + if (hours < 48) return relativeTime.format(-hours, "hour");
219 + return relativeTime.format(-Math.round(hours / 24), "day");
220 }
221
222 async function load(channel: ReleaseChannel) {
@@ -212,7 +237,7 @@ const imageProps = {
237
238 versionLabel.textContent =
239 channel === "nightly"
215 - ? `Built ${relativeAge(release.published_at)}`
240 + ? page.dataset.builtAgo!.replace("{age}", relativeAge(release.published_at))
241 : release.tag_name;
242 if (release.html_url) changelogLink.href = release.html_url;
243 cards.forEach((card) => {
@@ -220,7 +245,7 @@ const imageProps = {
245 card.href = match?.browser_download_url ?? fallback;
246 });
247 } catch {
223 - if (page.dataset.channel === channel) versionLabel.textContent = "Releases";
248 + if (page.dataset.channel === channel) versionLabel.textContent = page.dataset.releasesFallback!;
249 }
250 }
251
apps/marketing/src/pages/[...locale]/index.astro renamed
+87 -81
@@ -1,15 +1,23 @@
1 ---
2 import { getImage } from "astro:assets";
3 -import desktopScreenshot from "../assets/app-desktop.webp";
4 -import Layout from "../layouts/Layout.astro";
3 +import desktopScreenshot from "../../assets/app-desktop.webp";
4 +import Layout from "../../layouts/Layout.astro";
5 import {
6 ANDROID_PLAY_STORE_URL,
7 GITHUB_REPOSITORY_URL,
8 IOS_APP_STORE_URL,
9 MARKETING_STATS,
10 -} from "../lib/site";
11 -import { tweets } from "../lib/tweets";
12 -import { softwareJsonLd } from "../lib/seo";
10 +} from "../../lib/site";
11 +import { tweets } from "../../lib/tweets";
12 +import { softwareJsonLd } from "../../lib/seo";
13 +import { messagesFor } from "../../i18n";
14 +import { fillTemplate, localeStaticPaths, localizedHref, templateParts } from "../../i18n/locales";
15 +
16 +export const getStaticPaths = localeStaticPaths;
17 +
18 +const { locale } = Astro.props;
19 +const t = messagesFor(locale).home;
20 +const users = new Intl.NumberFormat(locale).format(Number(MARKETING_STATS.users.replaceAll(",", "")));
21
22 const screenshot = await getImage({
23 src: desktopScreenshot,
@@ -31,8 +39,11 @@ const mobileEndorsementRows = [
39 ---
40
41 <Layout
34 - title="T3 Code | The open-source control plane for coding agents"
42 + title={t.title}
43 + description={t.description}
44 jsonLd={[softwareJsonLd()]}
45 + locale={locale}
46 + localizedPath="/"
47 >
48 <section class="hero">
49 <div class="hero-grid" aria-hidden="true"></div>
@@ -54,34 +65,39 @@ const mobileEndorsementRows = [
65
66 <div class="container hero-inner">
67 <h1 class="hero-title display">
57 - <span data-rise>The open-source</span><br /><span data-rise style="--d:90ms">control plane</span><br /><span data-rise style="--d:180ms">for coding agents.</span>
68 + {t.heroTitle.map((line, index) => (
69 + <Fragment>
70 + {index > 0 && <br />}
71 + <span data-rise style={index > 0 ? `--d:${index * 90}ms` : undefined}>{line}</span>
72 + </Fragment>
73 + ))}
74 </h1>
75
60 - <p class="hero-sub" data-rise style="--d:300ms">
61 - Orchestrate Claude Code, Codex, Antigravity, OpenCode, Cursor, and Grok from one surface.
62 - Bring your own subscription. Fork the whole thing.
63 - </p>
76 + <p class="hero-sub" data-rise style="--d:300ms">{t.heroSub}</p>
77
78 <div class="hero-actions" data-rise style="--d:400ms">
79 <a
80 id="download-btn"
81 href="https://github.com/pingdotgg/t3code/releases"
82 class="btn btn-primary btn-lg"
83 + data-label-mac={t.downloadForMac}
84 + data-label-win={t.downloadForWindows}
85 + data-label-linux={t.downloadForLinux}
86 >
87 <svg class="dl-icon dl-icon--apple" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
88 <svg class="dl-icon dl-icon--windows" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
89 <svg class="dl-icon dl-icon--linux" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/></svg>
74 - <span id="download-label">Download for macOS</span>
90 + <span id="download-label">{t.downloadForMac}</span>
91 </a>
92 <a class="hero-source-link" href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">
93 <svg class="hero-source-mark" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
94 <path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/>
95 </svg>
80 - <span>Steal our code (legally)</span>
96 + <span>{t.sourceLink}</span>
97 <svg class="hero-source-arrow" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"/></svg>
98 </a>
99 <p class="hero-mobile-line">
84 - Also on your phone:
100 + {t.alsoOnPhone}
101 <a href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">iOS</a>
102 <span aria-hidden="true">·</span>
103 <a href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">Android</a>
@@ -97,7 +113,7 @@ const mobileEndorsementRows = [
113 src={desktopScreenshot.src}
114 srcset={`${screenshot.srcSet.attribute}, ${desktopScreenshot.src} ${desktopScreenshot.width}w`}
115 sizes="(max-width: 960px) min(864px, calc(100vw - 20px)), min(1180px, calc(100vw - 60px))"
100 - alt="T3 Code running Claude, Codex, Muse, and Gemini subagents in one thread"
116 + alt={t.screenshotAlt}
117 width={desktopScreenshot.width}
118 height={desktopScreenshot.height}
119 loading="eager"
@@ -113,12 +129,16 @@ const mobileEndorsementRows = [
129 <section id="endorsements" class="sec-endorsements" aria-labelledby="endorsements-title">
130 <div class="container">
131 <div class="endorsements-head">
116 - <h2 id="endorsements-title">Tolerated by over <span class="endorsements-count">{MARKETING_STATS.users}</span> devs</h2>
117 - <p>Some of them even tweeted about it.</p>
132 + <h2 id="endorsements-title">
133 + {templateParts(t.endorsementsTitle).map((part) =>
134 + typeof part === "string" ? part : <span class="endorsements-count">{users}</span>,
135 + )}
136 + </h2>
137 + <p>{t.endorsementsSub}</p>
138 </div>
139 </div>
140
121 - <div class="endorsement-carousel endorsement-carousel--desktop" aria-label="Developer endorsements">
141 + <div class="endorsement-carousel endorsement-carousel--desktop" aria-label={t.endorsementsLabel}>
142 {
143 desktopEndorsementRows.map((row, rowIndex) => (
144 <div class:list={["endorsement-row", rowIndex === 1 && "is-reverse"]}>
@@ -131,7 +151,7 @@ const mobileEndorsementRows = [
151 href={tweet.link}
152 target="_blank"
153 rel="noopener noreferrer"
134 - aria-label={`Read ${tweet.handle}'s post on X`}
154 + aria-label={fillTemplate(t.readPost, { handle: tweet.handle })}
155 tabindex={groupIndex === 1 ? "-1" : undefined}
156 >
157 <div class="endorsement-author">
@@ -156,7 +176,7 @@ const mobileEndorsementRows = [
176 }
177 </div>
178
159 - <div class="endorsement-carousel endorsement-carousel--mobile" aria-label="Developer endorsements">
179 + <div class="endorsement-carousel endorsement-carousel--mobile" aria-label={t.endorsementsLabel}>
180 {
181 mobileEndorsementRows.map((row, rowIndex) => (
182 <div class:list={["endorsement-row", rowIndex === 1 && "is-reverse"]}>
@@ -169,7 +189,7 @@ const mobileEndorsementRows = [
189 href={tweet.link}
190 target="_blank"
191 rel="noopener noreferrer"
172 - aria-label={`Read ${tweet.handle}'s post on X`}
192 + aria-label={fillTemplate(t.readPost, { handle: tweet.handle })}
193 tabindex={groupIndex === 1 ? "-1" : undefined}
194 >
195 <div class="endorsement-author">
@@ -198,12 +218,8 @@ const mobileEndorsementRows = [
218 <section id="harnesses" class="sec-harness">
219 <div class="container">
220 <div class="section-head">
201 - <h2>Bring your own sub</h2>
202 - <p>
203 - T3 Code doesn't resell tokens. Plug in Claude Code, Codex, Antigravity,
204 - OpenCode, Cursor, or Grok with the credentials you already have. We
205 - orchestrate them, you keep your plan.
206 - </p>
221 + <h2>{t.harnessTitle}</h2>
222 + <p>{t.harnessBody}</p>
223 </div>
224
225 <div class="harness-grid">
@@ -246,15 +262,15 @@ const mobileEndorsementRows = [
262 <div class="harness-mark"><img src="/harnesses/antigravity.svg" alt="" /></div>
263 <div class="harness-meta">
264 <div class="harness-name">Antigravity</div>
249 - <div class="harness-tag">Google sign-in</div>
265 + <div class="harness-tag">{t.googleSignIn}</div>
266 </div>
267 </div>
268 </div>
269
270 <div class="harness-footer">
255 - <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> No keys resold. No quota caps.</div>
256 - <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Switch models mid-thread.</div>
257 - <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> More harnesses shipping weekly.</div>
271 + {t.harnessPoints.map((point) => (
272 + <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> {point}</div>
273 + ))}
274 </div>
275 </div>
276 </section>
@@ -264,18 +280,18 @@ const mobileEndorsementRows = [
280 <div
281 class="git-visual"
282 role="img"
267 - aria-label="Illustration of the T3 Code Git workflow: review a diff, commit and push changes, and open a pull request."
283 + aria-label={t.gitVisualLabel}
284 >
285 <div class="pr-card tile">
286 <div class="pr-head">
287 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M18 8v5a3 3 0 01-3 3h-3M13 13l-2 3 2 3"/></svg>
288 <span class="pr-title">Add marketing hero animation</span>
273 - <span class="pr-status">Ready</span>
289 + <span class="pr-status">{t.prReady}</span>
290 </div>
291 <div class="pr-meta">
292 <span><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M6 12a6 6 0 006-6h6"/></svg> feat/marketing-hero → main</span>
293 <span>+142 −38</span>
278 - <span>3 commits</span>
294 + <span>{t.prCommits}</span>
295 </div>
296 <div class="pr-files">
297 <div><code>apps/marketing/src/pages/index.astro</code> <span>+14 −2</span></div>
@@ -283,10 +299,10 @@ const mobileEndorsementRows = [
299 <div><code>apps/marketing/public/hero.css</code> <span>+120 −36</span></div>
300 </div>
301 <div class="pr-foot">
286 - <span class="btn btn-ghost" style="font-size:12px;padding:6px 10px">View diff</span>
302 + <span class="btn btn-ghost" style="font-size:12px;padding:6px 10px">{t.viewDiff}</span>
303 <span class="btn btn-ghost" style="font-size:12px;padding:6px 12px">
304 <svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/></svg>
289 - Open pull request
305 + {t.openPullRequest}
306 </span>
307 </div>
308 </div>
@@ -298,7 +314,7 @@ const mobileEndorsementRows = [
314 <div class="pr-button-shell">
315 <span class="pr-button">
316 <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M18 8v5a3 3 0 01-3 3h-3M13 13l-2 3 2 3"/></svg>
301 - Commit &amp; push
317 + {t.commitPush}
318 <span id="pr-button-kbd" class="pr-button-kbd">⌘⏎</span>
319 </span>
320 </div>
@@ -306,17 +322,12 @@ const mobileEndorsementRows = [
322
323 <div class="git-copy">
324 <div class="section-head" style="margin-bottom:0">
309 - <h2>One button to commit, push, and make a PR.</h2>
310 - <p>
311 - Every agent thread writes to its own branch. When it's good, one
312 - button opens the PR on GitHub with a generated title, body and
313 - changelog. No terminal dance required.
314 - </p>
325 + <h2>{t.gitTitle}</h2>
326 + <p>{t.gitBody}</p>
327 <ul class="checklist" style="margin-top:24px">
316 - <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Auto-generated PR titles &amp; bodies</li>
317 - <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Inline diff review before you push</li>
318 - <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Draft PRs, stack PRs, amend PRs</li>
319 - <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Works with your existing GitHub auth</li>
328 + {t.gitPoints.map((point) => (
329 + <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> {point}</li>
330 + ))}
331 </ul>
332 </div>
333 </div>
@@ -326,7 +337,7 @@ const mobileEndorsementRows = [
337 <section id="open" class="sec-open">
338 <div class="container">
339 <div class="section-head open-head">
329 - <h2>If you don't like something, fork it.</h2>
340 + <h2>{t.openTitle}</h2>
341 </div>
342
343 <div class="open-grid">
@@ -349,35 +360,29 @@ const mobileEndorsementRows = [
360 <div class="tile open-pitch">
361 <div class="open-pitch-copy">
362 <ul class="open-pitch-list">
352 - <li>
353 - <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
354 - <span><strong>Change the UI.</strong> Restyle every surface to match your taste.</span>
355 - </li>
356 - <li>
357 - <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
358 - <span><strong>Add an agent.</strong> Wire in your own tools, models, and flows.</span>
359 - </li>
360 - <li>
361 - <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
362 - <span><strong>Ship your own build.</strong> Self-host it or distribute it as your own.</span>
363 - </li>
363 + {t.openPoints.map((point) => (
364 + <li>
365 + <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
366 + <span><strong>{point.lead}</strong> {point.rest}</span>
367 + </li>
368 + ))}
369 </ul>
370 </div>
371
372 <div class="open-pitch-footer">
373 <div class="open-pitch-meta">
369 - <span>MIT licensed</span>
374 + <span>{messagesFor(locale).layout.mitLicensed}</span>
375 <span aria-hidden="true">·</span>
371 - <span>{MARKETING_STATS.githubStars} stars</span>
376 + <span>{fillTemplate(t.stars, { stars: MARKETING_STATS.githubStars })}</span>
377 </div>
378
379 <div class="open-pitch-actions">
380 <a class="btn btn-primary" href="https://github.com/pingdotgg/t3code/fork" target="_blank" rel="noopener noreferrer">
381 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="6" cy="5" r="2.2"/><circle cx="18" cy="5" r="2.2"/><circle cx="12" cy="19" r="2.2"/><path d="M6 7.2v2A3 3 0 009 12.2h6A3 3 0 0018 9.2v-2M12 14v2.8"/></svg>
377 - Fork on GitHub
382 + {t.forkOnGithub}
383 </a>
384 <a class="open-source-link" href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">
380 - Browse source
385 + {t.browseSource}
386 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"/></svg>
387 </a>
388 </div>
@@ -389,38 +394,33 @@ const mobileEndorsementRows = [
394
395 <section id="download" class="sec-cta">
396 <div class="container cta-inner">
392 - <h2 class="display cta-title">
393 - Your agents deserve better than a terminal.
394 - </h2>
395 - <p class="cta-sub">
396 - T3 Code is free, open source and fast. Install it, plug in the harness
397 - you already pay for, and let your agents get to work.
398 - </p>
397 + <h2 class="display cta-title">{t.ctaTitle}</h2>
398 + <p class="cta-sub">{t.ctaSub}</p>
399 <div class="cta-actions">
400 <a id="cta-download-btn" class="btn btn-primary btn-lg" href="https://github.com/pingdotgg/t3code/releases">
401 <svg class="dl-icon dl-icon--apple" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
402 <svg class="dl-icon dl-icon--windows" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
403 <svg class="dl-icon dl-icon--linux" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/></svg>
404
405 - <span id="cta-download-label">Download for macOS</span>
405 + <span id="cta-download-label">{t.downloadForMac}</span>
406 </a>
407 - <a class="btn btn-ghost btn-lg" href="/download">Other platforms</a>
407 + <a class="btn btn-ghost btn-lg" href={localizedHref(locale, "/download")}>{t.otherPlatforms}</a>
408 </div>
409 </div>
410 </section>
411 </Layout>
412
413 <script>
414 - import { fetchLatestRelease, RELEASES_URL, type ReleaseAsset } from "../lib/releases";
415 - import { startHomeMotion } from "../lib/homeMotion";
414 + import { fetchLatestRelease, RELEASES_URL, type ReleaseAsset } from "../../lib/releases";
415 + import { startHomeMotion } from "../../lib/homeMotion";
416
417 - type Platform = { os: "mac" | "win" | "linux"; label: string };
417 + type Platform = { os: "mac" | "win" | "linux" };
418
419 function detectPlatform(): Platform | null {
420 const ua = navigator.userAgent;
421 - if (/Win/i.test(ua)) return { os: "win", label: "Download for Windows" };
422 - if (/Mac/i.test(ua)) return { os: "mac", label: "Download for macOS" };
423 - if (/Linux/i.test(ua)) return { os: "linux", label: "Download for Linux" };
421 + if (/Win/i.test(ua)) return { os: "win" };
422 + if (/Mac/i.test(ua)) return { os: "mac" };
423 + if (/Linux/i.test(ua)) return { os: "linux" };
424 return null;
425 }
426
@@ -448,8 +448,10 @@ const mobileEndorsementRows = [
448 const platform = detectPlatform();
449 if (!platform) return;
450 document.documentElement.dataset.platform = platform.os;
451 - if (label) label.textContent = platform.label;
452 - if (ctaLabel) ctaLabel.textContent = platform.label;
451 + // Localized labels are rendered onto the hero button; the CTA reuses them.
452 + const platformLabel = btn?.getAttribute(`data-label-${platform.os}`);
453 + if (platformLabel && label) label.textContent = platformLabel;
454 + if (platformLabel && ctaLabel) ctaLabel.textContent = platformLabel;
455 if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎";
456
457 try {
@@ -568,6 +570,8 @@ const mobileEndorsementRows = [
570 }
571 /* Inline boxes ignore transforms, so each rising line needs its own block. */
572 .hero-title span { display: inline-block; }
573 + /* Japanese lines run to 13 full-width glyphs and would collide with the floating marks. */
574 + .hero-title:lang(ja) { font-size: clamp(30px, 4.5vw, 62px); }
575
576 .hero-sub {
577 color: var(--fg-muted);
@@ -724,6 +728,8 @@ const mobileEndorsementRows = [
728 margin-top: 14px;
729 }
730
731 + .hero-title:lang(ja) { font-size: clamp(22px, 6.4vw, 44px); }
732 +
733 .hero-actions {
734 margin-bottom: 40px;
735 }
apps/marketing/src/pages/sitemap.xml.ts
+31 -5
@@ -1,14 +1,40 @@
1 import type { APIRoute } from "astro";
2
3 +import {
4 + DEFAULT_LOCALE,
5 + isLocalizedPath,
6 + LOCALES,
7 + type LocalizedPath,
8 + localizedHref,
9 +} from "../i18n/locales";
10 import { absoluteUrl, STATIC_PAGES } from "../lib/seo";
11
12 +// Each localized URL lists every translation plus x-default, as Google's sitemap hreflang format asks.
13 +const alternateLinks = (path: LocalizedPath) =>
14 + [
15 + ...LOCALES.map((entry) => ({ hreflang: entry.code, href: localizedHref(entry.code, path) })),
16 + { hreflang: "x-default", href: localizedHref(DEFAULT_LOCALE, path) },
17 + ]
18 + .map(
19 + (entry) =>
20 + ` <xhtml:link rel="alternate" hreflang="${entry.hreflang}" href="${absoluteUrl(entry.href)}"/>`,
21 + )
22 + .join("\n");
23 +
24 export const GET: APIRoute = () => {
6 - const urls = STATIC_PAGES.map(
7 - (page) =>
8 - ` <url><loc>${absoluteUrl(page.path)}</loc><priority>${page.priority}</priority></url>`,
9 - );
25 + const urls = STATIC_PAGES.flatMap((page) => {
26 + const path = page.path;
27 + if (!isLocalizedPath(path)) {
28 + return [` <url><loc>${absoluteUrl(path)}</loc><priority>${page.priority}</priority></url>`];
29 + }
30 + const alternates = alternateLinks(path);
31 + return LOCALES.map(
32 + (entry) =>
33 + ` <url>\n <loc>${absoluteUrl(localizedHref(entry.code, path))}</loc>\n <priority>${page.priority}</priority>\n${alternates}\n </url>`,
34 + );
35 + });
36 const body = `<?xml version="1.0" encoding="UTF-8"?>
11 -<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
37 +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
38 ${urls.join("\n")}
39 </urlset>
40 `;