Your trip starts tomorrow.
3 seats left
Open-source i18n for TypeScript & Rust
Translate your frontend, backend, command-line tools, MDX documentation, and Rust applications. Write messages in your source, keep translations in Git, and use one local toolchain from extraction to compiled catalogs.
Palamedes 2.0 is out. Read the release notes.
Prefer your coding agent?
Add the Palamedes skill, then ask: Use the Palamedes skill to set up translations in this app.
Add the skill
npx skills add sebastian-software/palamedes --skill palamedesCovers Next.js App Router and Vite + React, including Lingui migration. What the agent does
Choose your integration. Each guide explains the setup and supported scope.
One local toolchain connects these integrations: extract messages, review PO catalogs, check translations, and compile them for your target. Explore the pmds toolchain →
What changes
In a typical key-based setup you maintain a second codebase next to your app: a name for every text, a file per language, glue for every framework. Here is what Palamedes takes off your plate.
Typical key-based setup:Invent a key like checkout.cta_v2, then type the text into a JSON file.
With Palamedes:Write the sentence in the component. That’s it.
Typical key-based setup:Copy new keys into every language file by hand. Old ones linger forever.
With Palamedes:One command adds new sentences to every catalog and flags the deleted ones.
Typical key-based setup:Keys and JSON, often without a hint where the text appears.
With Palamedes:The full sentence and the component it lives in, in a standard .po file.
Typical key-based setup:Often every message of a language, with message syntax interpreted at runtime.
With Palamedes:Compiled messages for the screens that are actually open. Nothing to parse.
Typical key-based setup:Your own loaders, providers, and middleware for server and client.
With Palamedes:A first-party adapter for your framework, tested as a real app.
Typical key-based setup:Compare each tool’s measured median in the framework and platform table below.
With Palamedes:39 ms on Linux and 37 ms on macOS for the 1,500-file React reference workload.
Clear. Complete. Fast. Pick three.
How it works
Six stops, each explained in plain words. You don’t need an i18n background — just the one component below.
Stop 1 · Write
Wrap visible text in <Trans> and counts in <Plural>. The component reads like the interface you are building, so anyone reviewing the pull request can check the copy right there.
src/TripCard.tsx — what you write
import { Plural, Trans } from "@palamedes/react/macro" export function TripCard({ seats }: { seats: number }) { return ( <article> <h3><Trans>Your trip starts tomorrow.</Trans></h3> <p><Plural value={seats} one="# seat left" other="# seats left" /></p> </article> )}Stop 2 · Extract
pmds extract reads all your source files in parallel and collects every message into one catalog per language. New sentences appear, deleted ones are marked obsolete, nobody copies text by hand.
$ pmds extract → src/locales/de.po
#: src/TripCard.tsx#TripCardmsgid "Your trip starts tomorrow."msgstr "" #: src/TripCard.tsx#TripCardmsgid "{seats, plural, one {# seat left} other {# seats left}}"msgstr ""Stop 3 · Translate
Each language is a plain .po file in your repository. Translators fill in msgstr — by hand, in a translation tool, or through your own scripts — and the change arrives as a diff you can review.
src/locales/de.po — translated
#: src/TripCard.tsx#TripCardmsgid "Your trip starts tomorrow."msgstr "Deine Reise beginnt morgen." #: src/TripCard.tsx#TripCardmsgid "{seats, plural, one {# seat left} other {# seats left}}"msgstr "{seats, plural, one {# Platz frei} other {# Plätze frei}}"Stop 4 · Build
During the build, each <Trans> becomes a short ID and every translation becomes ready-to-run JavaScript. Plural rules, numbers, and dates are prepared once, on your machine — and a broken message fails the build instead of a visitor’s page.
Your component after the build
import { getI18n } from "@palamedes/runtime"import { Trans } from "@palamedes/react/compiled" export function TripCard({ seats }: { seats: number }) { return ( <article> <h3><Trans id="rPAYxZI1G3I" /></h3> <p>{getI18n()._("vqH_FEPt0Hs", { seats })}</p> </article> )}The German catalog after the build
// locales/de — compiled while you buildconst one = (v, r, p) => r.join(r.pound(p), " Platz frei")const other = (v, r, p) => r.join(r.pound(p), " Plätze frei")const seats = (v, r) => r.plural(v, "seats", 0, "plural", { one, other }) export const messages = defineCompiledCatalog({ rPAYxZI1G3I: "Deine Reise beginnt morgen.", vqH_FEPt0Hs: seats,})Stop 5 · Deliver
A real app holds thousands of messages in many languages, but a visitor needs one language and only the screens they open. Palamedes ships each screen’s translations together with its code. On the server, all requests share one copy of each language’s catalog.
Illustration · open a screen
German messages arrive with the first page
Not downloaded — nobody opened it yet
Not downloaded — nobody opened it yet
Not downloaded — nobody opened it yet
Stop 6 · Render
The right words are in the server-rendered HTML, stay correct when the page becomes interactive, and follow into server actions. Switch the language and copy and plural rules change together — the component never did.
In the browser
Your trip starts tomorrow.
3 seats left
Why Rust?
Your i18n tooling runs every time you save, commit, or open a pull request. Choose a framework and platform to compare the CLI workflows on 1,500 files and 6,000 messages. Each table compares tools on the same platform. The historical local recording replays each tool's measured median.
React · 1,500 files · 6,000 messages · cold CLI workflows
| Tool · scope | MedianLinux · x86-64 |
|---|---|
| Palamedes v2.0.0extract + catalog update | 39 ms |
| fbtee v4.0.0extract + catalog update | 289 ms |
| General Translation v2.17.2extract + catalog update | 5.5 s |
| i18next-cli v1.72.1extract + catalog update | 4.1 s |
| Lingui v6.6.0extract + catalog update | 4.2 s |
| React Intl v6.16.22extract + write | 236 ms |
Three fresh Blacksmith VMs per platform. Three warmups and seven samples per VM. Values are medians of the three VM medians; platforms are reported separately. Versions identify the measured CLI or tool package.
Linux: AMD EPYC · Node v24.22.0 · 2026-10-29
React Intl only extracts and writes a source artifact. A failed catalog check receives no timing. Application builds and runtime rendering are outside this benchmark.
Workflow run →Raw samples and catalog checks →Measured revision 94fc246 →
React · 1,500 files (750 with i18n), ~400k lines, 6,000 messages · historical local macOS recording
| Tool · what it does | Progress | Time |
|---|---|---|
| Palamedes v1.17.3extract + catalog update | 73 ms | |
| Lingui v6.6.0extract + catalog update | 2.2 s | |
| General Translation v2.16.4extract + catalog update | 5.1 s | |
| i18next-cli v1.69.0extract + catalog update | 5.8 s | |
| fbtee v3.0.1collect + two-catalog update · two CLI commands | 7.3 s |
47 ms on a cached re-run after 5 changed source files — Palamedes keeps an extraction cache, the other tools re-read everything, so no speedup is claimed for it. React Intl's narrower extraction-only lane is on the proof page.
Median of 7 runs · darwin/arm64 · Node v24.19.0 · 2026-08-14. Machine-local measurements from earlier releases. Framework reports were captured separately.Checked report →
Bundlers, compilers, linters, and formatters went native years ago — esbuild, SWC, Oxc, Biome, Rolldown. Extraction is the same kind of work: read source, understand it, write output. So Palamedes does it in Rust too.
When extraction takes milliseconds, it can run on every save and in every CI job. Nobody skips it, so the catalogs never drift away from the code.
The same Rust core extracts, updates, checks, and compiles for every adapter. Next.js and Solid behave the same way because they run the same code.
Verified app integrations
Modern frameworks run your components in several places — on the server, in the browser, inside server actions. The right messages must be ready in each place, for each visitor, at the right moment. Palamedes ships that wiring as a first-party adapter for your framework, and tests it as a real app.
On the server
The adapter knows the visitor’s language and loads that catalog once, shared by every request that needs it.
On the wire
Visitors and search engines get finished text in the first response — no flash of English while scripts load.
In the browser
The same words survive hydration, and screens loaded later bring their own messages.
Back on the server
Code that runs later — a form submission, a server function — still answers in the visitor’s language.
Without an adapter, every one of these moments is glue code you write and maintain. With Palamedes the same model connects Next.js, TanStack Start, Solid, Waku, React Router, Remix, Vue, Nuxt, Svelte, SvelteKit, and Vite. Hono and Express use the shared runtime for backend messages. Find your framework →
Your app decides; Palamedes supports five locale strategies. The example matrix checks 10 app integrations × 4 strategies in CI. Explicit language domains and SEO link generation have focused core tests.
Which one fits your product? →example.com/checkout
Cookie
One address for every language; the choice is remembered. Great for signed-in apps.
example.com/de/checkout
Path
A path per language. Easy to index and share — the classic for public sites.
de.example.com/checkout
Subdomain
A host per language or market. Clean splits for CDNs and analytics.
example.de/checkout
Top-level domain (TLD)
product.com to product.de: keep the hostname and change its final DNS label.
mein-produkt.de/checkout
Explicit language domains
my-product.com to mein-produkt.de: map each language to a complete hostname, even when the names differ.
Browser footprint
Extraction, macros, and native compilers stay in your build. The browser gets compiled messages and a JavaScript runtime that uses built-in Intl. Here is that runtime, measured separately from your framework and translations.
| Runtime profile | Gzip | Brotli |
|---|---|---|
| CoreVue · Nuxt · Svelte · SvelteKit · TypeScript | 3.9 kB | 3.4 kB |
| ReactNext.js · React Router · Waku · TanStack Start · Vite | 4.5 kB | 4.0 kB |
| SolidSolidStart · TanStack Start · Vite | 4.3 kB | 3.8 kB |
| RemixRemix 3 | 4.5 kB | 4.0 kB |
Translations add content. The booking demo's complete English catalog has 38 messages: 1.2 kB gzip, 1.1 kB Brotli. That is a separate example cost. Your text and loading strategy determine what a route fetches.
For a Next.js app, read the React row. It includes Palamedes' runtime and rich-text renderer. React, Next.js, generated client bootstrap, and catalogs are excluded. These reference bundles keep client initialization, message lookup, and the compiled catalog factory. Your imports and build determine the actual application increase.
Choosing a library?
Every comparison opens with what the other project does well, separates measured results from research, and says when you should not switch.
You build with Angular
There is no Angular adapter here. React, Solid, Remix, Vue, and Svelte have working integration examples; the framework guides describe the setup for each host.
You ship React Native
There is no React Native adapter here. fbtee has an explicit Expo path, while Lingui and i18next also support React Native today.
You require no browser i18n runtime
Palamedes uses a runtime when translated components execute in the browser. If your architecture requires zero client i18n JavaScript, keep translation on the server or choose a compilation model that removes the runtime entirely.
You want the i18n library to own routing
next-intl treats localized pathnames and domain routing as core product. Palamedes leaves URLs to your router on purpose.
The receipts
Every claim on this page points to something you can run, read, or re-check. The framework support is made of real applications, one per framework and URL shape — not a wall of logos.
41example applications, built and smoke-checked in the production image
41of them checked in a real browser: language switching, formatting, and lazy catalogs
31written design decisions, including the alternatives that were rejected
Why it exists
Palamedes is the third generation of i18n tooling from Sebastian Werner — after qooxdoo’s gettext-style tooling and an enterprise migration of thousands of hardcoded strings to Lingui. Each round taught the same lesson: a shortcut that feels good on the first screen becomes a migration two years later.
So Palamedes keeps what proved durable — real sentences in the code, readable catalogs, one runtime model — and writes down every tradeoff before you depend on it.
“If the model feels boring in the right way, Palamedes is doing its job.”
Catalogs are plain gettext .po files in your repository: reviewable in pull requests, readable by translation tools, and yours to take anywhere.
Built and maintained in the open by Sebastian Software GmbH, with every architectural decision written down.
Your next step
Every team arrives with a different question. Pick yours — each path leads to the material that answers it.
Choose your frontend, backend, CLI, MDX, or Rust starting point and follow its guide to a working translation.
Find your starting pointBring your translations with you. For Lingui, the migration guide and agent skill preserve existing PO translations; for other stacks, start with an honest comparison.
Read the migration guideCookie, path, subdomain, TLD, or explicit language domains: compare the URL policies before you wire one into the host.
Explore locale architectureCheck the system boundary, performance, and message semantics against your constraints — then re-run the evidence.
Inspect the architectureBefore you adopt it
Stability, ownership, and how Palamedes fits the way your translators already work.
Palamedes 2.0 is published on npm. Start with your framework guide and its checked example. The release notes explain what changed since 1.x, and the stability guide lists the support tier of each API.
Frontend interfaces, backend content, Node.js command-line programs, MDX documentation, and Rust applications. Frontend integrations include React, Solid, Vue, Svelte, and their supported app frameworks. Hono and Express use the shared backend runtime; Vite compiles translated MDX for React or Solid; Cargo prepares external language files for Rust. Each guide describes its setup, working example, and supported scope.
Yes. The Cargo integration prepares external language catalogs for Rust CLIs and services, including English. Cargo exports a message contract; pmds catalog compile checks compatible PO updates against it without rebuilding your app. Text, display arguments, string selects, and cardinal and ordinal plurals work today. The Rust applications guide covers the Cargo dependency and a complete example.
No. Palamedes covers the complete local workflow for your source messages and the catalogs in your repository. It is not a hosted translation management system, and it does not machine-translate or AI-translate your text.
In your repository, as plain files you review like code. The toolchain extracts messages, updates the catalogs, audits and merges them by meaning, and compiles them for your build.
Palamedes keeps source-string-first PO catalogs readable in version control. Translators can work with those catalogs directly or through the import and export path of a chosen TMS; the exact external workflow and fidelity depend on that product and its project configuration.
The repository includes a Lingui migration guide and an agent skill for Next.js and Vite/React. Migration depends on the source model and IDs; the skill inventories them and preserves existing PO translations before changing catalogs. Other stacks require their own migration assessment.
Choose the guide and working example for your frontend, backend, command-line tool, MDX documentation, or Rust application.