Translating Models and Components

Translate a published data model, or one component, into another language. SDCStudio copies every component it needs into a project you choose, in the new language, and translates the human text. The original is untouched and is not retired.

Why the translation stays tied to the original

Each translated component:

  • says what it was derived from (prov:wasDerivedFrom the original);
  • declares its language in its published schema (xml:lang);
  • keeps the original's semantic links and the definition IRI of each enumeration value, line for line.

So a record made with the Portuguese model and a record made with the English one differ in structure (each component has its own ct_id) and agree in meaning: they meet in the graph, through the same links and value definitions. This is the second layer of SDC interoperability, and it is what lets a community build its own language without drifting from the original.

Any language

Translate into any language that has a BCP 47 tag, the standard xml:lang uses: es-ES, sw, yo, mi, quz-PE (Cusco Quechua), zh-Hant-TW, es-419 (Latin American Spanish). In the app, type a language's name or its tag; the suggestions come from the IANA Language Subtag Registry. A tag is stored in its canonical form (pt-br becomes pt-BR; a deprecated code becomes its replacement). The languages of SDCStudio's own screens are a separate setting and do not limit this.

Translation quality depends on the language model's knowledge of the language. For less widely written languages, have a fluent speaker review the drafts before publishing.

What is translated

The label and description of every component and cluster; the model's title and description; enumeration values and their descriptions; the true and false values of a boolean; ordinal symbols and annotations.

Never translated: semantic links, definition IRIs, ct_ids, constraints, patterns, and Units. The model's contextual components (subject, provider, participations, protocol, workflow, access control, audit and attestation) are kept as they are.

An enumeration value with no definition IRI is flagged before you start: once translated, nothing ties it to the original value. Add a definition to the original, or accept that the translated value stands alone.

Translations that already exist are reused

Before copying a component, SDCStudio looks for a translation of it into the same language: a published one you can see, or a draft of yours in the target project. It reuses that instead of making another, so ten models that share a component share its translation, and translating again finishes an unfinished translation instead of paying twice.

In the app: review before publishing

  1. Open a published model or component and click Translate.
  2. Choose the language and the project to translate into.
  3. Leave Review before publishing checked to get drafts you can check and edit first.
  4. Click Estimate to see what will be copied, what reused, and the cost, then Translate.
  5. The result lists every translation. Open each draft, correct it if needed, and publish it, or publish them all by translating again with Review before publishing unchecked: the drafts are reused and only their publication is charged.

From an agent: sdcmodeler and the API

sdcmodeler translate <ct_id> --language pt-BR (or the MCP tools estimate_translation and translate_model) estimates, translates and publishes in one run. A key with Auto-spend runs without a person approving the estimate; --review makes drafts only. See MCP servers and API Keys.

The API:

  • POST /api/v1/dmgen/translate/estimate/ with {source, language, project?, publish?} returns what would be reused (reuse) and copied (copy), the values without a definition (unanchored), model_credits, draft_credits, publish_credits, total_credits, funding, auto_spend, and an estimate_id. It changes nothing.
  • POST /api/v1/dmgen/translate/ with the same body and the estimate_id funds the whole run and holds it, as assembly does, and answers 202 with a job to poll (kind: translate). The finished job's result carries translated_ct_id, created, reused, published, and for a model the model's links.
  • Refusals: 404 not_found for a source that does not exist, is unpublished, or you cannot see; 409 with retired (and its successor), same_language, or stale_estimate. A run that cannot be funded is a 402 with its reason, as for assembly.
  • GET /api/v1/dmgen/translate/languages/?q= searches languages by name or tag. Any valid BCP 47 tag is accepted, listed or not; an invalid one is a 400 with error_type: language.

What it costs

A translated model is 500 credits, covering the model, its root cluster and its publication. Every other new translated component or cluster is 100 credits as a draft and 100 more when published. Reused translations are free. See Wallet & Billing.