Skip to content

Commit c51e6e4

Browse files
committed
feat(marketing): localize the site in 8 languages
Home and download pages render in es, zh, pt-BR, fr, de, ja, ko and ru through Astro i18n routing with English unprefixed at /. Strings live in typed per-locale dictionaries, the nav gains a language picker, and every page and sitemap entry declares hreflang alternates plus x-default.
1 parent 521ac7c commit c51e6e4

16 files changed

Lines changed: 1341 additions & 134 deletions

File tree

‎apps/marketing/astro.config.mjs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { defineConfig } from "astro/config";
22

3+
import { LOCALES } from "./src/i18n/locales.ts";
4+
35
// Astro loads env with an empty prefix, and under `vp run` Vite+'s loadEnv then reports every
46
// variable to the task cache. Any env difference (TERM, VP_RAW_SUBCOMMAND, an agent's session
57
// vars) would rerun `astro check`. Without the runner client, loadEnv reads process.env directly;
@@ -10,6 +12,14 @@ export default defineConfig({
1012
site: "https://t3.codes",
1113
// Vercel 308s `/path/` to `/path` (see vercel.ts), so every internal link and canonical uses one form.
1214
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+
},
1323
server: {
1424
port: Number(process.env.PORT ?? 4173),
1525
},

‎apps/marketing/src/i18n/de.ts‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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‎

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
};

0 commit comments

Comments
 (0)