Follow-up: daw_i18n/v1 and daw_error/v1 update #12

Open
opened 2026-08-12 20:31:40 +02:00 by michael · 0 comments
Owner

Goal

Track follow-up work in berhtjan-core resulting from the daw_i18n/v1
contract (new) and the daw_error/v1 update in DAW/daw-contracts.

Background

  • daw_i18n/v1 is a new contract for language-neutral translatable text
    resources (canonical English + partial translations, UUID resource
    identity, named placeholders).
  • daw_error/v1 gained optional cell_id and resource_id; source
    clarified as cell name/type, not instance identity.

Questions to resolve here

  • lang.lua's resolve_lang()/resolve_label() predate daw_i18n/v1 and
    solve a related but not identical problem (label resolution from
    contribution.json-declared {en=..., de=...} tables, not from
    daw_i18n/v1 resource files). Relationship needs to be clarified:
    does berhtjan-core's label model get replaced by daw_i18n/v1, wrap
    it, or stay separate for contribution labels while daw_i18n/v1
    covers error/event text?
  • Does berhtjan-core construct daw_error/v1 objects that should carry
    cell_id? berhtjan-core has no cell identity/lifecycle concept yet
    -- do not invent one here.

Acceptance criteria

  • Relationship between lang.lua's label model and daw_i18n/v1
    decided and documented
  • Decision on cell_id usage (or explicit deferral) documented

References

## Goal Track follow-up work in berhtjan-core resulting from the daw_i18n/v1 contract (new) and the daw_error/v1 update in DAW/daw-contracts. ## Background - daw_i18n/v1 is a new contract for language-neutral translatable text resources (canonical English + partial translations, UUID resource identity, named placeholders). - daw_error/v1 gained optional `cell_id` and `resource_id`; `source` clarified as cell name/type, not instance identity. ## Questions to resolve here - lang.lua's resolve_lang()/resolve_label() predate daw_i18n/v1 and solve a related but not identical problem (label resolution from contribution.json-declared `{en=..., de=...}` tables, not from daw_i18n/v1 resource files). Relationship needs to be clarified: does berhtjan-core's label model get replaced by daw_i18n/v1, wrap it, or stay separate for contribution labels while daw_i18n/v1 covers error/event text? - Does berhtjan-core construct daw_error/v1 objects that should carry `cell_id`? berhtjan-core has no cell identity/lifecycle concept yet -- do not invent one here. ## Acceptance criteria - [ ] Relationship between lang.lua's label model and daw_i18n/v1 decided and documented - [ ] Decision on cell_id usage (or explicit deferral) documented ## References - DAW/daw-contracts daw_i18n/v1 - DAW/daw-contracts daw_error/v1 - DAW/daw-modul-berhtjan-cli#6 (language resolution consolidation)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-modul-berhtjan-core#12
No description provided.