Author:
    Creation:2026-11-27Last update:2026-12-01

    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). 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 and #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.

    youtube.com

    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 <T> 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"

    T3 Code's AGENTS.md, highlighted: "the things we can never compromise on", "2. Performance without compromise", "We have not, and we're proud of the performance of T3 Code", "Make sure all changes are considerate of performance impact"

    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:

    A note from Theo in T3 Code's AGENTS.md, highlighted: Channel both "measure twice, cut once" and "yagni"

    Measure twice, cut once. So let's measure.

    Disclosure: I built Intlayer, 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 (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 <T>, strings in gt(), constants in msg():

    tsx
    const gt = useGT();
    
    <button title={gt("Discard draft")}>…</button>
    
    <T>Clone <Var>{repo}</Var> and bring the local files git does not track.</T>
    

    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.

    PackageMinified
    @generaltranslation/react-core23.4 KB
    gt-i18n23.4 KB
    @generaltranslation/icu20.1 KB
    generaltranslation16.2 KB
    @generaltranslation/format15.9 KB
    @generaltranslation/api12.4 KB
    gt-react5.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.

    Runtime cost of the i18n library alone (gzip)

    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:

    T3 Code PR #31313: "gt-react adds 35.7 kB gzip (109 kB raw) to the startup closure"

    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.

    Treemap of the T3 Code web build, with the ten language catalogs outlined

    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.

    i18n JavaScript downloaded before first paint, web app (gzip)

    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:

    Who needs the 10,298 strings in T3 Code's French catalog?

    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 <T> 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.

    Theo's January 2026 thread praising General Translation, our reply about the JSON loaded on every page, and GT's answer

    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):
    <button>{gt("Discard draft")}</button>
    
    // What the runtime does: hash("Discard draft") → "4bcfa3b9…" → look it up in fr.json
    <button>Abandonner le brouillon</button>
    

    A French user downloads every string twice: in English inside the components, in French in the catalog.

    Content vs library vs ICU parser, web startup (gzip)

    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, "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, 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 <T> does when it renders

    When <T>Clone <Var>{repo}</Var> and bring the local files.</T> renders, the component:

    1. Walk

      Walk the JSX tree you gave it.

    2. Serialize

      Serialize it to JSON (["Clone ", { k: "repo" }, …]).

    3. Hash

      Hash that JSON (unless a precomputed $_hash is passed in).

    4. Look up

      Look up the hash in the catalog.

    5. Rebuild

      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.

    Rendering 2,000 translated paragraphs: plain JSX 1.1 ms vs the T component 32 ms

    About 16 µs per <T>, nearly 30 times plain JSX. It's not catastrophic: <T> 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:

    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.

    Translation catalogs inside T3 Code's iOS bundle

    • 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

    <T> only translates the text written directly between its tags. Every placeholder, label, toast and error message needs its own function call:

    tsx
    const gt = useGT();
    <input placeholder={gt("Search threads")} />
    <button aria-label={gt("Close panel")} />
    toast(gt("Copied to clipboard"));
    throw new Error(msg("Connection lost"));
    <T>Clone <Var>{repo}</Var> locally</T>
    

    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 <T>, 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 <T>, gt() and msg().

    Follow the money

    So why GT?

    Back in February, General Translation sponsored a video on Theo's channel ("Never mind (OpenAI won again)", February 6, 2026: "Thank you General Translation for sponsoring!").

    General Translation's site in the sponsored segment of Theo's video

    On November 10, GT announced a $27M raise (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:

    gt-react weekly npm downloads

    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.

    npm downloads over the last 12 months

    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 stringsReplace each one with t("key"), write the JSONWrap each one in <T>, gt() or msg()Nothing with the compiler, which extracts plain JSX text at build time. Or useIntlayer("key")
    KeyA name you choose: t("thread.scrollHint")A hash of the English textThe compiler builds one from the first words, editable once the compiler saves it to the source
    Catalog layoutNamespaces, which you can load per routeOne file per locale, generated by the CLIOne dictionary per component, per locale; shared ones grouped by the pages that use them
    Message formatOwn {{var}} syntax, ICU through a pluginICU MessageFormat, parsed at runtimeTyped content functions (insert, enu, cond…), ICU optional
    Runtime cost (gzip)18.3 KB38.0 KB4.8 KB
    Work at renderReads a keyWalks, serializes and hashes the JSXReads a key
    Automatic translationNone built in: use any tool or TMSGT's serviceCLI using your own AI provider key. Run locally or in CI
    MaturitySince 2012Young, backed by a translation vendorSince 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.

    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.)

    i18n bytes before first paint, web app (gzip): General Translation vs. Intlayer, English and French user

    i18n bytes before first paint, web app (gzip)

    Treemap of the T3 Code web build on Intlayer, with the dictionary chunks loaded at startup outlined

    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, 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:

    Funding rounds in localization tooling: Smartling $160M, Lokalise $50M, Weglot €45M, Smartcat $43M, General Translation $27M, Lingo.dev $4.2M

    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

    Comments

    No comments yet. Be the first to share your thoughts.

    Related Posts

    Last Posts