Get started
Your first working translation.
Pick your framework, write one sentence, and watch it render in a second language. Follow the steps yourself — or hand them to your coding agent with the Palamedes setup skill.
Palamedes 2.0 is out. Read the release notes.
What you will have at the end
- The CLI and your framework adapter installed
- One palamedes.yaml that names your languages
- A message extracted into an English and a German catalog
- The German sentence rendering in your running app
The same loop then carries every message your application adds.
01 — The loop
Four steps you will keep using.
Write a message, extract it, translate it, render it. The first translation follows the same loop as every one after it — so learning it once is enough.
writeextracttranslaterenderrepeat
02 — Choose a host
Pick your stack. Follow seven short steps.
Each path goes from installation to a rendered translation. Your application keeps deciding which language a visitor gets; the adapter delivers the compiled messages for it.
- 01
Install
Core, runtime, host adapter, and the build plugin — plus the CLI as a dev dependency.
pnpm add @palamedes/core @palamedes/react @palamedes/runtime @palamedes/vite-plugin pnpm add -D @palamedes/cli @vitejs/plugin-react
- 02
- 03
Configure
One YAML file declares your locales and where catalogs live.
# palamedes.yaml locales: [en, de] source-locale: en catalogs: - path: src/locales/{locale} include: [src] - 04
Wire the plugin & runtime
The Vite adapter owns the parser-free runtime and derives the active locale's compiled catalog dependency before translated code runs.
// vite.config.ts import { defineConfig } from "vite" import react from "@vitejs/plugin-react" import { palamedes } from "@palamedes/vite-plugin" export default defineConfig({ plugins: [palamedes(), react()] }) // index.html — keep your existing body and module script <html lang="de"></html> - 05
Write & extract
Author the message in your component, then run one command — it creates src/locales/en.po and de.po.
// src/App.tsx import { Trans } from "@palamedes/react/macro" export default function App() { return <h1><Trans>Welcome to Palamedes</Trans></h1> } $ pnpm exec pmds extract - 06
Translate
Open the German catalog and fill in the translated string.
# src/locales/de.po msgid "Welcome to Palamedes" msgstr "Willkommen bei Palamedes"
- 07
See it render
The adapter derives and loads the active locale's compiled fragment before translated code runs — the page now renders “Willkommen bei Palamedes”.
$ pnpm dev
Using another framework? TanStack Start, React Router, Waku, and Remix each have their own setup page: TanStack Start, React Router, Waku, Remix.
03 — Next
Where to go after the first sentence.
Plurals and dates, a URL strategy, backend messages, a migration, or help when something breaks — pick what your application needs next.
Plurals, dates & currency
ICU MessageFormat with authoring diagnostics that catch mistakes at extract time.
Read more →Pick a locale strategy
Choose cookie, route prefix, subdomain, TLD, or explicit language domains. Compare the URL policies and their verification coverage.
Read more →Localize your backend
Request-local i18n for Hono and Express from the same catalogs.
Read more →Migrating from Lingui?
A step-by-step playbook. Source-string-first .po catalogs are often reusable after an extraction pass; explicit-ID setups need cleanup.
Read more →Something broke?
The troubleshooting guide covers the common setup failures with exact error messages.
Read more →Using an AI assistant?
Use the repository skill for Next.js or Vite/React setup and Lingui migration. It checks the target version, preserves catalogs, and verifies the rendered result.
Read more →
Ready for production? Choose its shape.
Pick the framework integration and the way languages appear in your URLs. Each combination already runs as a checked example app.