docs

Define translation context

Open Context in your project. The default profile starts empty. Fill in product knowledge, audience, tone, formality, and preferred or discouraged wording examples. Add locale-specific conventions such as German formal address.

Save version stores an immutable draft. Identical content reuses its existing version. Activate saved version selects it for new translation estimates and jobs. Activation does not translate or publish anything. Current releases keep serving their recorded wording.

Context from your UI

The compiler automatically provides nearby static headings, associated labels, and supporting copy for extracted UI text. For example, “Save” in account settings and “Save” in a reading list receive distinct identities and context. This works across React, Next.js, Solid, Vue, and Svelte without annotating each phrase.

Automatic context is limited to the current source tree. Use the project profile for product knowledge and audience, and explicit meaning notes for intent that cannot be discovered from nearby copy. Dynamic content submitted through the runtime API continues to use its meaning field.

Each automatic message context is bounded to six excerpts, 256 Unicode code points per excerpt, and 2 KiB serialized. Changing nearby copy invalidates incompatible translation-memory matches even when the translated phrase itself stays the same.

Surfaces and overrides

The compiler uses the ui surface. It can use the project default or select another complete profile. Runtime API content has no surfaces of its own.

Within the selected profile, exact locale guidance takes precedence over base-language guidance. If de-AT exists, it overrides the base profile; otherwise de is used. A string's meaning note explains that string and does not override hard glossary rules.

Profiles follow the active glossary by default. They can instead pin a specific glossary version. Jobs record the resolved glossary and profile versions when created, so an in-flight job keeps its original guidance.

Profiles are limited to 16 KiB serialized. Meaning notes are limited to 512 Unicode code points. The complete model prompt, including repair instructions, remains bounded to 64 KiB. Context is structured guidance, not a repository dump.

Version comparison and rollout

The editor shows active wording beside edited fields and resolves locale guidance without a model call. Save and activate the new version, then generate replacements through the normal budgeted workflow. Review and explicitly publish replacements when ready. Cached API content keeps its existing translation until you use Retranslate in API content.

Changes invalidate incompatible translation-memory matches. Identical source under an unchanged profile and glossary can reuse exact validated memory without a model call or new charge.

Editors can save and activate profiles. Viewers can inspect them. Paid API-work authorization is owner-only.

API

Project-scoped endpoints are under /api/v1/projects/:project:

  • GET /context: profiles, immutable versions, and the ui surface assignment.
  • POST /context/versions: { profileId?, name?, content }.
  • POST /context/activate: { profileId, versionId, expectedCurrentVersionId }.
  • POST /surfaces: { slug: "ui", profileId }; null selects the project default. Only the ui slug is accepted.

All mutations require Idempotency-Key. Activation compares the expected current version and rejects a stale edit.

Did this page get you to a working result?

On this page

No Headings