Skip to content

Open-source i18n for TypeScript & Rust

Just writethe sentence.

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.

Narration: a synthetic voice (ElevenLabs). Music: an original score; piano: Salamander Grand Piano V3 by Alexander Holm (CC BY 3.0).
TranscriptAsk your agent to translate the booking page.It makes up a key for every string, copies them into every language file, and writes its own loaders and glue code to wire it all up. That's a lot of code for one page.Let it stand on broader shoulders. With Palamedes, there are no keys. Your agent just writes the sentence.The wiring is already built, for React, Vue, Svelte, Solid, and the frameworks around them.And when the agent gets something wrong, it hears about it right away, not from your users.1,500 files take under a tenth of a second. Tools doing the same job need seconds.Add the skill, and ask for translations.Palamedes 2.0, at palamedes.dev.

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 palamedes

Covers Next.js App Router and Vite + React, including Lingui migration. What the agent does

Built into your stack.

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 →

  • Open source — MIT OR Apache-2.0
  • No account, no hosted service
  • Translations live in your Git repository

What changes

i18n, without the bookkeeping.

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.

  1. Writing UI text

    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.

  2. Keeping languages in sync

    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.

  3. What translators receive

    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.

  4. What the browser downloads

    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.

  5. Framework wiring

    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.

  6. Tooling speed

    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

Follow one sentence from your editor to your visitor.

Six stops, each explained in plain words. You don’t need an i18n background — just the one component below.

  1. Stop 1 · Write

    You write a sentence, not a key.

    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>  )}
  2. Stop 2 · Extract

    One command finds every sentence.

    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 ""
    Both messages are waiting for a German translation. The English catalog fills itself: in the source language, the sentence is the translation.
  3. Stop 3 · Translate

    Translators get a real file, not your codebase.

    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}}"
  4. Stop 4 · Build

    Your build turns sentences into tiny functions.

    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,})
    Real output of the Palamedes compiler for this example — formatted, with readable names for the generated functions.
  5. Stop 5 · Deliver

    Each screen loads only its own words.

    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

    Only the visitor’s language, only for screens they open. Watch real fragments load in the live demo →
  6. Stop 6 · Render

    Your visitor simply reads their language.

    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

    Seats left
    3
    Try 1 — each language has its own plural rules.

Why Rust?

Because nobody likes waiting for their tools.

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.

Benchmark framework

Compare i18n tools.

React · 1,500 files · 6,000 messages · cold CLI workflows

Benchmark platform
React extraction workflows on Linux x86-64. Each value is the median of three VM medians, with seven samples per VM.
Tool · scopeMedianLinux · x86-64
Palamedes v2.0.0extract + catalog update39 ms
fbtee v4.0.0extract + catalog update289 ms
General Translation v2.17.2extract + catalog update5.5 s
i18next-cli v1.72.1extract + catalog update4.1 s
Lingui v6.6.0extract + catalog update4.2 s
React Intl v6.16.22extract + write236 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 →

Replay the historical Mac recording

React · 1,500 files (750 with i18n), ~400k lines, 6,000 messages · historical local macOS recording

Extract and catalog update for React on 1,500 files (750 with i18n), ~400k lines, 6,000 messages, median of 7 runs. Times are rounded.
Tool · what it doesProgressTime
Palamedes v1.17.3extract + catalog update73 ms
Lingui v6.6.0extract + catalog update2.2 s
General Translation v2.16.4extract + catalog update5.1 s
i18next-cli v1.69.0extract + catalog update5.8 s
fbtee v3.0.1collect + two-catalog update · two CLI commands7.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 →

  • The ecosystem already moved.

    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.

  • Fast enough to stop thinking about it.

    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.

  • One core behind every framework.

    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.

Re-run it yourself

pnpm benchmark:e2e-workflow
Every benchmark, and how it is checked →Methodology →

Verified app integrations

The hard part isn’t translating. It’s the wiring.

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.

  1. On the server

    The page is rendered

    The adapter knows the visitor’s language and loads that catalog once, shared by every request that needs it.

  2. On the wire

    HTML arrives translated

    Visitors and search engines get finished text in the first response — no flash of English while scripts load.

  3. In the browser

    The page comes alive

    The same words survive hydration, and screens loaded later bring their own messages.

  4. Back on the server

    A server action replies

    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 →

Where does the language live in your URL?

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

Know what reaches the browser.

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.

Client imports after tree-shaking · production minification · 2026-11-21Excludes framework peers, host bootstrap and recovery code, catalogs, and Intl polyfills.
Runtime profileGzipBrotli
CoreVue · Nuxt · Svelte · SvelteKit · TypeScript3.9 kB3.4 kB
ReactNext.js · React Router · Waku · TanStack Start · Vite4.5 kB4.0 kB
SolidSolidStart · TanStack Start · Vite4.3 kB3.8 kB
RemixRemix 34.5 kB4.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.

Inspect the measurements and reproduce them

Choosing a library?

Already using something else? Here’s the honest difference.

Every comparison opens with what the other project does well, separates measured results from research, and says when you should not switch.

When Palamedes is not the right choice.

  • 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

Don’t take our word for it.

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

The Palamedes emblem: a laureled Greek head in a bronze ring
PalamedesGreek legend credits him with inventing letters of the alphabet — a fitting patron for software that teaches applications new languages.

Why it exists

Built by someone who has done this three times.

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

  • Your translations stay yours

    Catalogs are plain gettext .po files in your repository: reviewable in pull requests, readable by translation tools, and yours to take anywhere.

  • A maintainer you can name

    Built and maintained in the open by Sebastian Software GmbH, with every architectural decision written down.

Your next step

Where are you starting from?

Every team arrives with a different question. Pick yours — each path leads to the material that answers it.

Before you adopt it

Questions teams ask first.

Stability, ownership, and how Palamedes fits the way your translators already work.

Is Palamedes ready for production use?

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.

What can I translate with Palamedes?

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.

Can I translate a Rust CLI with Palamedes?

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.

Does Palamedes replace a translation management system or write translations with AI?

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.

Where do translation catalogs live?

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.

How do translators work with Palamedes?

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.

Can a team migrate from an existing i18n library?

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.

Write one sentence. Watch it speak German.

Choose the guide and working example for your frontend, backend, command-line tool, MDX documentation, or Rust application.