---
createdAt: 2026-11-27
updatedAt: 2026-12-01
title: "T3 Code's i18n: 370 KB Before the First Pixel"
description: "T3 Code says performance is the one thing it never compromises on. Then it shipped translations. I took the production bundles apart, 370 KB of i18n before the first pixel for a French user, 63% of the catalog for screens they haven't opened, every string shipped twice, 18,000 calls to the library, and an investor link nobody mentioned."
keywords:
- T3 Code
- General Translation
- gt-react
- gt-react-native
- i18next
- Internationalization
- i18n
- Bundle size
- Blog
slugs:
- blog
- t3code-i18n-reverse-engineered
author: aymericzip
youtubeVideo: https://www.youtube.com/watch?v=F47ebkFwBKE
---
# We Reverse-Engineered T3 Code's i18n: Quality Is No Longer a Promise
Less than a week ago, everyone was looking at T3 Code's telemetry ([good summary here](https://news.sulat.com/2026/11/25/t3-code-telemetry/)). T3 Code is Theo Browne's open-source app for coding agents. The telemetry point was about data leaving your machine. So I dug into the code too. This post is about data coming in.
On November 12, T3 Code merged [#31313](https://github.com/pingdotgg/t3code/pull/31313) and [#33169](https://github.com/pingdotgg/t3code/pull/33169) and went multilingual: web, desktop and mobile. Two weeks later: 10 languages and 10,298 strings. I built the production bundles and pulled them apart.
What a French user gets:
- **370 KB** of gzipped i18n before the first pixel shows up: a 39 KB runtime plus a 331 KB catalog.
- **More than half of it** for screens they haven't opened.
- **Every string twice**: once in English, once in French.
- A **38 KB** i18n runtime, twice react-i18next, English users included.
- A `` component that walks, serializes, hashes and rebuilds its JSX when it renders: **about 29 times** the cost of plain JSX. Plus **three hand-written patches** to the library's compiled code, in two weeks, to stop other calls from re-hashing and re-parsing strings on every render.
- **18,000 calls** to the library across the codebase, keyed by a hash that breaks when someone fixes a typo.
- On mobile, **all nine languages** in every install (3.6 MB of bytecode). Less dramatic, but still dead weight.
Theo is also one of the investors in the company behind that library. I'll get to that.
> "Lots of apps have gotten bogged down with bad tech decisions and 'slop'. We have not, and we're proud of the performance of T3 Code."
>
> T3 Code's `AGENTS.md`, under "Performance without compromise"
[](https://github.com/pingdotgg/t3code/blob/4cc8f4c44f396ae998a9b8fc744e149e69c4920a/AGENTS.md?plain=1#L33)
That's a bold thing to write in your repo. Performance is on the list of things T3 Code "can never compromise on". So I took it at its word.
Theo also left a rule in that same file:
[](https://github.com/pingdotgg/t3code/blob/4cc8f4c44f396ae998a9b8fc744e149e69c4920a/AGENTS.md?plain=1#L15)
Measure twice, cut once. So let's measure.
> **Disclosure:** I built [Intlayer](https://intlayer.org), a competing i18n library. Read this post as a competitive note, NOT a neutral review.
## The library T3 Code picked: GT
T3 Code went with [General Translation](https://github.com/generaltranslation/gt) (GT): `gt-react` on web and desktop, `gt-react-native` on mobile.
GT is a company more than a library. The SDKs are MIT-licensed and free. The money is in AI translation: `gt translate` sends your strings to GT's servers and serves them back from GT's CDN. The SDK is the way in.
The pitch is "no keys": the English text _is_ the key. You wrap JSX in ``, strings in `gt()`, constants in `msg()`:
```tsx
const gt = useGT();
Clone {repo} and bring the local files git does not track.
```
Then `gt generate` hashes every English string and writes one big catalog per language, keyed by that hash:
```json
{
"6c6e16b9488f8b91": "Faites défiler pour tout lire.",
"4bcfa3b976a421cf": "Discussion annexe"
}
```
T3 Code doesn't use GT's translation service at all. _"There is no GT cloud"_, says its own i18n guide. The team writes the translations straight into the JSON. Keep that in mind for the lock-in section.
## #1 The runtime: 38 KB, everyone pays
The runtime ships to every user, on every page load. An i18n library detects the language, loads the right translations, falls back when one is missing, and formats plurals, dates and numbers. Mainstream ones do it in **5 to 20 KB gzipped**.
GT puts seven packages on T3 Code's startup path: **117 KB minified, about 39 KB gzipped**. English users included.
| Package | Minified |
| -------------------------------- | -------: |
| `@generaltranslation/react-core` | 23.4 KB |
| `gt-i18n` | 23.4 KB |
| `@generaltranslation/icu` | 20.1 KB |
| `generaltranslation` | 16.2 KB |
| `@generaltranslation/format` | 15.9 KB |
| `@generaltranslation/api` | 12.4 KB |
| `gt-react` | 5.7 KB |
`@generaltranslation/api` is the client for GT's cloud, endpoints included. T3 Code doesn't use that cloud, and the client still ships at startup.
That's the heaviest runtime in the benchmark: twice react-i18next, more than ten times Lingui.
[](https://github.com/intlayer-org/benchmark-i18n)
### The text weighs more than the library
A bigger library isn't necessarily a more complete one. And the library is rarely the heavy part anyway.
Take any app. A typical i18n library weighs about 20 KB. The text displayed on a page, around 30 KB. Now stack that same text for every language: 30 in English, 30 in French, 30 in Spanish, and so on. That stack is where the weight goes.
In T3 Code, the gap is even wider: 39 KB of library against 331 KB of French text. Keep that in mind for the next section.
### The team knew
The team knew. The original PR puts a number on it:
[](https://github.com/pingdotgg/t3code/pull/31313)
They measured it and accepted it. Fine. The catalogs are another story.
## #2 The catalog: 331 KB before the first pixel
That same PR measured the catalogs too: _"loaded with a lazy `import()` per locale (3.6 kB each)"_. True at the time, when only the settings page was translated.
Two weeks and 10,000 strings later, each locale is one chunk of **705 KB to 1.16 MB**. French is **842 KB raw, 331 KB gzipped**. You can't miss them in the bundle analyzer: the ten giant blocks (outlined in red) aren't features, they're languages.

And the app won't render a thing until the catalog is in:
```ts
// apps/web/src/main.tsx
export const startup = Promise.all([
managedAuthShellModule?.then((module) => module.default) ?? null,
// Chained so settings have usually hydrated; English resolves without a chunk load.
router.load().then(whenLocaleReady),
]);
```
The intent is good: nobody wants a flash of English. But before the first frame, an English user downloads 39 KB of i18n. A French user: **370 KB**.

That's **+18% gzipped JavaScript before the first frame** for a French user.
On desktop, Electron reads it from disk, so nobody notices. On the web, everybody does: app.t3.codes, plus every browser connecting to a T3 server over Tailscale or a T3 Connect tunnel, which the project calls "core to the product". Often from a phone, over the network.
### 63% of it is for other screens
So what's in those 331 KB? I matched each of the 10,298 French entries to the JavaScript chunks that contain its English source:

**Only 35% are used at startup. 63% are for screens you haven't opened yet**: the thread view (1,014 strings), panel layout controls (630), connection settings (510), the "add provider" dialog (392)… And 177 strings aren't used by the client at all.
To be fair, many app frameworks preload a page as soon as you hover its link. T3 Code's router (TanStack Router, with `defaultPreload: "intent"`) does it for route chunks, and the settings sidebar preloads its sections the same way. So even with per-page text, you'd download some of it anyway, but in the background, after the first frame, and only for the pages you point at. Here, all of it blocks the first paint.
That's the catch with one catalog per language. It's a giant global store, plugged into every component. Every `` and `gt()` reads from the same object, so no page can load just its own text. To show one page, you load them all.
### They were warned in January
Back in January, Theo tweeted that General Translation made internationalization go from "f\*\*\* this" to "trivial". We replied that the magic has a cost: a massive JSON file, loaded on every page.
[](https://x.com/aymericzip/status/2008882180194492774)
GT's answer: _"Actually this doesn't happen (zero json loads) when you visit English pages, and we put a lot of work into optimizing translated pages too!"_
Zero JSON loads on English pages. True. A lot of work optimizing translated pages? Ten months later, a French user still downloads 331 KB before the first pixel.
### Every string, twice
GT finds translations by hashing the English, at runtime. So the English has to ship too:
```tsx
// What the component contains (English, inside the JS):
// What the runtime does: hash("Discard draft") → "4bcfa3b9…" → look it up in fr.json
```
A French user downloads every string twice: in English inside the components, in French in the catalog.

**39 KB of English** for everyone at startup (162 KB raw). **331 KB of French** on top. Next to that, the whole rest of the library is 32 KB. The weight is in the content.
## #3 Patched on every render
Size isn't the only cost. Twelve days after adopting GT, a performance PR ([#42582](https://github.com/pingdotgg/t3code/commit/9b671699d438ef0cf1d712580228c497baa4dd5f), "thread switches paint the timeline in their first frame") had to patch GT's compiled `dist/` files. The patch comments explain why.
In `patches/gt-i18n@1.0.40.patch`:
> `// T3 patch: msg() hashes its template on every render; the hash ignores variable values.`
> `// T3 patch: text without ICU syntax formats to itself, so skip parsing it on every render.`
In `patches/@generaltranslation__format@0.1.9.patch`:
> `// T3 patch: validity is a pure function of the locale and mapping, and useGT asks on every render.`
Until T3 Code patched it, GT hashed, parsed and validated on every render. (A fourth patch, from [#38982](https://github.com/pingdotgg/t3code/pull/38982), fixes `gt-react-native`'s locale setter on Android.)
The patches are pinned to exact versions, and GT ships fast: **694 versions of `gt-react` since July 2024**, 20 in the last month, v12 already in pre-release. Every upgrade, someone redoes them by hand.
### What `` does when it renders
When `Clone {repo} and bring the local files.` renders, the component:
Walk the JSX tree you gave it.
Serialize it to JSON (`["Clone ", { k: "repo" }, …]`).
Hash that JSON (unless a precomputed `$_hash` is passed in).
Look up the hash in the catalog.
Rebuild a translated copy of your elements with `cloneElement`.
Every time its children change.
I benchmarked it: 2,000 paragraphs rendered with `react-dom/server`, same French output both ways.

About **16 µs per ``, nearly 30 times plain JSX.** It's not catastrophic: `` memoizes on locale, params and children, T3 Code builds with the React Compiler which skips part of it, and the app stays usable. This is an upper bound: a first render, or a re-render where the children changed.
Intlayer, Paraglide and i18next skip this work. You declare the content up front, and the component reads it without walking or hashing anything.
### ICU: a standard, but heavy
Why a parser at all? The catalog is just JSON: text, no logic. Something has to turn a plural written as `{count, plural, one {# file} other {# files}}` into something the SDK can execute, so that `t.myKey({ count: 2 })` returns "2 files". That's the parser's job: the bridge between the message format and the SDK's logic.
The parser behind those messages is ICU MessageFormat. Yes, ICU became a standard. But it's heavy: `@generaltranslation/icu` is about **7 KB gzipped** (20 KB minified) in T3 Code's build. And it was designed for Java and C (ICU4J, ICU4C), not for JavaScript apps that ship their code across the world's networks. Heavy, and not always efficient: that's why several other libraries (i18next, vue-i18n, Paraglide, Intlayer) chose their own message format. I've written more about it:
- [ICU is the wrong fit for client-side JavaScript](https://intlayer.org/blog/why-icu-is-not-made-for-js)
When a team needs three patches in two weeks to stop its i18n library from burning CPU, the problem is in the library's design.
## Mobile: nine languages in your pocket (and that's mostly fine)
On mobile, the catalogs are "required on demand":
```ts
// apps/mobile/src/i18n/I18nProvider.tsx
// Required on demand: Metro runs every statically imported module at startup, and only one
// locale's catalog is ever used.
const CATALOGS = {
es: () => require("./translations/es.json"),
zh: () => require("./translations/zh.json"),
// …7 more
};
```
Lazy `require()` delays when they _run_, but they still _ship_: Metro doesn't split code, so all nine catalogs are in the app.

- **21.7% of the JavaScript bundle** (4.86 MB of 22.4 MB) is translations.
- As Hermes bytecode, **+3.61 MB** (28.53 → 32.14 MB). I built it with and without to check.
- An English user reads none of it. Everyone else reads one ninth.
On mobile, this is a minor issue. The app is installed once and everything is already on the device, so nothing blocks the first frame, and switching language is instant. Lazy loading per page wouldn't change much either, since Metro ships one bundle anyway.
The only real cost is size: 3.6 MB more in every install, and in every over-the-air update (`expo-updates`, `frequentUpdates: true`). Annoying, not a scandal. Many multilingual mobile apps have the same problem.
One fix: **let users download their language inside the app and store it locally**.
Then there's Hermes, which lacks `Intl.Locale`, `Intl.DisplayNames` and `Intl.PluralRules`. GT needs them, so in come the FormatJS polyfills. Runtime plus polyfills: **609 KB minified, 178 KB gzipped**. `@formatjs/intl-getcanonicallocales` alone is 162 KB.
## #4 Locked in: 18,000 calls
### "No keys" doesn't mean no work
`` only translates [the text written directly between its tags](https://github.com/generaltranslation/gt). Every placeholder, label, toast and error message needs its own function call:
```tsx
const gt = useGT();
toast(gt("Copied to clipboard"));
throw new Error(msg("Connection lost"));
Clone {repo} locally
```
I counted them: **18,087 calls to GT in 1,279 files**, across web (11,576), mobile (4,934) and shared packages plus desktop (1,577). That's **8,954 `gt()`, 6,888 `msg()` and 2,245 ``**, plus a custom lint rule to catch the ones people forget.
### Fix a typo, lose nine translations
Then, maintenance. T3 Code's own i18n guide has the warnings:
> "The English text in the source must not change by one character: the hash is the key, and tests assert on it."
> "A re-export through a local module hides every string behind it, and the next `gt generate` deletes their keys."
The English is the key. Fix "recieve", and the hash changes. The French translation is gone, and the eight others with it. Nothing errors or warns: the app falls back to English.
### Dead keys
Dead keys pile up anyway. The CLI scans whole folders instead of following what the app imports. Two weeks in, **177 entries (1.7%)** belong to code the web app never ships, like "Enter a project path." Everyone downloads them, in every language. I'll check again in six months. I'd bet my right arm that between 5 and 10% of the loaded content will be orphaned.
### Hard to leave
Remember: T3 Code doesn't use GT's cloud. It skipped the one thing GT sells. What's left is the piece it needs least: the heaviest runtime in the comparison, wrapped around **18,000 call sites**.
And leaving won't be cheap. The catalogs are keyed by GT's own hash function, and the code is full of ``, `gt()` and `msg()`.
## Follow the money
So why GT?
Back in February, General Translation [sponsored a video](https://www.youtube.com/watch?v=RYWrK2hsIB8) on Theo's channel ("Never mind (OpenAI won again)", February 6, 2026: _"Thank you General Translation for sponsoring!"_).
[](https://youtu.be/RYWrK2hsIB8?t=100)
On November 10, GT [announced a $27M raise](https://slator.com/general-translation-raises-27-million/) (Seed and Series A, the A led by a16z). Six days later, it announced on its blog that Paraglide JS "is now part of General Translation". Paraglide users are being pointed the same way: GT promises "new, optional paths to GT inference", and paraglidejs.com now recommends GT for translating messages.
`gt-react` went from 3,300 weekly downloads a year ago to **443,000** last week:
[](https://www.npmjs.com/package/gt-react)
The business model? Selling AI translation. And their CLI only takes a GT key (`GT_API_KEY`). No bring-your-own OpenAI or Anthropic key.
But zoom out. Over the last twelve months, react-i18next was downloaded almost **700 million** times. `gt-react`: **3.4 million**. Two hundred times less.

Funding is a bet on the translation service. Whether the SDK holds up is a different question. T3 Code is the biggest public answer so far.
Now, the part I teased. That same funding announcement thanks GT's angel investors, and **Theo Browne** is on the list. Theo didn't write the PRs that brought GT into T3 Code, a team member did, and the post doesn't say when he invested. But it's his app, his rule ("measure twice"), and his money in GT.
So, did anyone measure it at full scale before shipping it?
## Should you avoid General Translation?
Probably. Skipping key names is tempting, but in T3 Code it came with:
The heaviest runtime I've measured: 38 KB gzipped, with a cloud client the app doesn't use.
Hashing and parsing on every render, patched by hand within two weeks.
A 331 KB catalog blocking first paint, mostly for screens you haven't opened.
Every string shipped twice for non-English users.
18,000 manual calls.
Translations that vanish on a typo.
A codebase that's hard to leave, welded to GT's hash.
On mobile, a smaller cost: +3.6 MB of bytecode for languages you don't read, plus Intl polyfills.
GT isn't useless. Skipping key names saves time, ICU is a real standard, and hosted translation is handy if you buy it. But GT drops the keys and keeps the manual work. A compiler can extract that text at build time, and ship each page only its own content, in its own language. That costs build time, sure. I'd rather pay on the build machine than in every user's browser.
Using source text as the key isn't new, by the way. Lingui does it too, but hashes and compiles at build time, for a 3.4 KB runtime. GT does that work in the browser, on render.
The three approaches side by side:
| | i18next (+ react-i18next) | GT (gt-react) | Intlayer (react-intlayer) |
| ---------------------- | ------------------------------------------------ | ----------------------------------------- | ----------------------------------------------------------------------------------------------- |
| Marking strings | Replace each one with `t("key")`, write the JSON | Wrap each one in ``, `gt()` or `msg()` | Nothing with the compiler, which extracts plain JSX text at build time. Or `useIntlayer("key")` |
| Key | A name you choose: `t("thread.scrollHint")` | A hash of the English text | The compiler builds one from the first words, editable once the compiler saves it to the source |
| Catalog layout | Namespaces, which you can load per route | One file per locale, generated by the CLI | One dictionary per component, per locale; shared ones grouped by the pages that use them |
| Message format | Own `{{var}}` syntax, ICU through a plugin | ICU MessageFormat, parsed at runtime | Typed content functions (`insert`, `enu`, `cond`…), ICU optional |
| Runtime cost (gzip) | 18.3 KB | 38.0 KB | 4.8 KB |
| Work at render | Reads a key | Walks, serializes and hashes the JSX | Reads a key |
| Automatic translation | None built in: use any tool or TMS | GT's service | CLI using your own AI provider key. Run locally or in CI |
| Maturity | Since 2012 | Young, backed by a translation vendor | Since 2024 |
| Commits (Nov 30, 2026) | 2,804 + 2,085 (two repos) | 4,053 (`generaltranslation/gt` monorepo) | 8,040 (`aymericzip/intlayer` monorepo) |
T3 Code did measure GT. Once, on a settings page, with a 3.6 kB catalog. Nobody measured again once the whole app was translated. That second measurement is the "measure twice" part.
## Who is writing the code now?
T3 Code's own guide says most contributions now come from T3 Code itself:
> "Of note: Most T3 Code contributions will come from T3 Code itself, often controlled remotely."
>
> T3 Code's `AGENTS.md`, "A note from Theo"
That means coding agents. Is the team still as careful with its code as it used to be, or are AI-generated code and VC money making software worse?
In 2026, do you want a VC-backed company in charge of your translations?
## Same app, on Intlayer (first results)
So I migrated T3 Code's web app to Intlayer, on top of the same commit: [`030974a`](https://github.com/aymericzip/t3code/commit/030974a108d0d3f4ee3e6c7d146c73d876935aa3).
Measured with Intlayer 9.9.4, in English (the other locales aren't filled yet). In short:
The runtime is 6× lighter with Intlayer.
Before the first frame, an English user downloads 44 KB of i18n with Intlayer, against 78 KB with GT. A French user: still 44 KB, against 409 KB.
Every page downloads less JavaScript (2.0 to 2.1 MB, against 2.2 MB). But in English, GT still renders first: the home screen is ready in 578 ms against 948 ms, settings pages 4 to 17% sooner. My best guess: Intlayer's startup dictionaries are 19 separate files, while GT's English sits inside the components.
The build takes 33 seconds with Intlayer's compiler, against 19 seconds with GT. That's the extra step: on every build, the compiler parses each component, extracts its text and injects the `useIntlayer()` calls, in memory. (The `compiler.saveComponents` option writes that transformation back to the source files instead. Run it once, or now and then when new text comes in: the components are transformed for good, and the extra step is gone.)
[](https://github.com/aymericzip/t3code/commit/030974a108d0d3f4ee3e6c7d146c73d876935aa3)
_i18n bytes before first paint, web app (gzip)_
[](https://github.com/aymericzip/t3code/commit/030974a108d0d3f4ee3e6c7d146c73d876935aa3)
_Intlayer: the dictionary chunks loaded at startup_
> **Note:** Intlayer's French numbers reuse the English measurement. In Intlayer, English is one dictionary among others, with no translation layer patched on top of it, so a French user loads French dictionaries the same way an English user loads English ones.
## Conclusion
Intlayer isn't perfect either. After years engineering on this problem, I'm convinced there is no perfect way to do i18n on the web in Dec 2026. You always pay somewhere: in extra requests and runtime work, or in extra build time to post-process everything. Intlayer mostly pays on the build machine.
But GT is one of the worst implementations I've seen. It reminds me of [Lingo.dev](https://github.com/lingodotdev/lingo.dev), another translation vendor with an AI-generated SDK as the way in. Lingo.dev still ships fixes, but it seems to be winding down: its `lingo.dev` package now warns on every run that it's being replaced, with support ending at the end of 2026.
To be fair, GT is young. With the new money, and with what AI is changing, the SDK could get better. On the business side, $27M is impressive, one of the largest rounds in localization tooling:

I think GT put the money ahead of the SDK. And selling translation is a strange business model today, when any AI model can translate your strings (again, Intlayer's CLI runs on your own AI provider key).
Yes, part of this post is a frustrated competitor going after a library that misunderstood the challenge.
The other part goes after Theo, and that one is harder to write. He was a reference for me for years. Today we care about different things: he's putting out more videos and chasing more views and revenue, and he pays less attention to the quality of what ships. T3 Code's i18n is the clearest case I've found.
**Disclaimer:** I've never used GT's web app for managing translations. From the outside, it looks well made.
## Sources
- T3 Code PRs: [#31313](https://github.com/pingdotgg/t3code/pull/31313) (web i18n), [#33169](https://github.com/pingdotgg/t3code/pull/33169) (mobile i18n), [#42582](https://github.com/pingdotgg/t3code/commit/9b671699d438ef0cf1d712580228c497baa4dd5f) (GT patches)
- T3 Code docs: [`AGENTS.md`](https://github.com/pingdotgg/t3code/blob/09f27413eb7832f01aba8dfac8cbbf9ae611cfa1/AGENTS.md), `docs/internals/14_i18n.md`, `docs/user/telemetry.md`
- Telemetry: [Sulat summary](https://news.sulat.com/2026/11/25/t3-code-telemetry/)
- [General Translation SDK source](https://github.com/generaltranslation/gt)
- Theo's thread on GT and the replies, January 5–7, 2026 (X)
- Sponsored video: ["Never mind (OpenAI won again)"](https://youtu.be/RYWrK2hsIB8?si=yAXU1jjkDuHzuWuh&t=100), Theo - t3.gg, 2026-02-06
- GT funding: GT blog, "Raising $27m to localize the world's best companies" (2026-11-10), [Slator](https://slator.com/general-translation-raises-27-million/)
- npm downloads: [api.npmjs.org](https://api.npmjs.org/downloads/range/2025-11-27:2026-11-26/gt-react), [gt-react on npm](https://www.npmjs.com/package/gt-react)
- Lingo.dev: replacement notice in [lingodotdev/lingo.dev#2272](https://github.com/lingodotdev/lingo.dev/pull/2272)
- [i18n lib benchmark](https://github.com/intlayer-org/benchmark-i18n)
- [Intlayer measurement on T3 Code](https://github.com/aymericzip/t3code/commit/030974a108d0d3f4ee3e6c7d146c73d876935aa3)