Skip to content

How it works

localize.work is deliberately split in two: where translation work happens, and the files your app reads.

CONTROL PLANE │ DELIVERY PLANE
(translators work here) │ (your app reads here)
│
┌──────────┐ ┌──────────┐ │ ┌──────────────────┐
│ Editor │──▶│ API │ │ │ Object storage │
│ SPA │◀──│ Fastify │ │ │ (EU) + CDN │
└──────────┘ └────┬─────┘ │ └────────┬─────────┘
│ │ │
┌────▼─────┐ │ │ plain JSON
│ Postgres │ │ │ over HTTPS
└──────────┘ │ ▼
│ │ ┌──────────────────┐
│ PUBLISH │ │ Your application │
└────────────┼──▶│ (i18next) │
snapshot → │ └──────────────────┘
render → │
upload → │ Static files only: no
move pointer │ editor API, no API key.

Control plane — the editor, the HTTP API, Postgres, AI translation. This is where keys are created, translated, reviewed and published. Nothing done here changes what your app receives until someone publishes.

Delivery plane — published translation JSON, served at cdn.localize.work with a short cache in front of object storage. This is in the startup path of every application you ship. It serves only the immutable release files and the one-line pointer: loading translations never calls the editor API and needs no key. Only the optional, development-time saveMissing reporter posts new keys to the API.

The bridge between them is the publish pipeline. It runs only when someone publishes: a person pressing Publish in the editor, or a script or AI agent using an API key that has been given the publish capability.

  1. Snapshot. Take the previously active release’s items as a baseline and overlay every current reviewed row. Draft and translated rows never publish. Baseline items whose key was deleted, or whose locale is no longer a project locale, are dropped. A key deleted and created again since that release counts as deleted: only its new reviewed text publishes.
  2. Render. Turn each (locale, namespace) group into plain i18next JSON — dots become nesting, plural forms become _one/_other suffixes at the leaf. See published JSON format.
  3. Upload. Write every file under an immutable version path. Nothing observable has changed yet.
  4. Point. Overwrite the one-line latest.json pointer. This is the atomic moment the release goes live.

Because the pointer moves last, a failure at any earlier step is invisible to readers. And because the version paths are immutable, rollback is nothing more than pointing latest.json at an older release — no file is rewritten, nothing is deleted, and applications pinned to a specific version are unaffected in either direction.

A release stores namespace and key names, not database ids. Rename a namespace or delete a key tomorrow and every already-published release still renders exactly what it rendered on the day it was published. A release is a snapshot of text, not a view over live rows.

We go down Effect on you
Database Nobody can edit, review or publish. Published files keep being served.
AI provider The AI suggestion button fails. Everything else works.
The localize.work service (editor, API and cdn.localize.work run as one service) Nobody can edit or publish, and an app that does not already have the files cached cannot fetch its translations at startup.
Object storage After a few seconds latest.json can no longer be served, so a browser without a cached copy cannot find the current release. Release files the service fetched recently stay in its memory cache for up to ten minutes, so an app pinned to a version can keep loading them for that long.

The last two rows are in your critical path. Each page load reads latest.json (cached for up to five minutes); release files are immutable and cached by the browser for a year, so a browser that already has the current release does not need to fetch them again.

Postgres and object storage are both in an EU region. Published files are public by design: they are served without authentication so that a browser can fetch them. Do not put anything secret in a translation value.

latest.json is written with Cache-Control: public, max-age=300; version paths are written with public, max-age=31536000, immutable. So the worst case for a publish becoming visible to a new page load is the pointer’s 5-minute TTL. Already-running applications do not poll — one initialised i18next instance resolves the pointer once and keeps using that release until it is re-initialised.

Files are served by localize.work’s own servers in the EU, which keep recent files in memory instead of reading object storage on every request. Publishing and rolling back update the server’s copy of latest.json immediately.