Skip to content

docs(spec): keys of a multilingual entity are not translated - #45

Open
delchev wants to merge 1 commit into
mainfrom
spec/non-translatable-key
Open

docs(spec): keys of a multilingual entity are not translated#45
delchev wants to merge 1 commit into
mainfrom
spec/non-translatable-key

Conversation

@delchev

@delchev delchev commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Adds the translatable: false marker to Data, seeds & naming → Multilingual data as its own subsection ("Keys are not translated"), plus the reference-table row.

On a multilingual: true entity every string property is translatable, because translatability is derived from the type. That is right for a label and wrong for a key — the column a determination rule matches on, the business key an arrival's lookup resolves a relation by. Once a key is translatable the comparison is on a moving target: the read overlay shows the translated value, saving the row writes it into the stored column, and the literal the intent was authored with matches nothing from then on. Nothing fails; the rule just stops applying.

The normative block states the marker's semantics (no translation-table column, never overlaid, read as stored in a report column, refused in a translation seed, default true), that it is refused where it cannot mean anything, and that a rule's match column and a lookup's by field must not be translated.

npx vitepress build docs is clean.

Tracks intent-specification#61 (proposal 0030) — leave open until that proposal is accepted. Implementation: eclipse-dirigible/dirigible#7038.

`translatable: false` on a field, and the two matching sites held to it - a
determination rule's match column and a business-key lookup's `by` field. A
translated key stops matching the value the intent was authored with, with no
observable failure at all.

Mirrors intent-specification proposal 0030.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant