[MVP][READY] #220 Angular host/player shared i18n key-map bootstrap (da+en) #233
Reference in New Issue
Block a user
Delete Branch "feat/issue-220-angular-shared-i18n-keymap-bootstrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #220 only.
Summary
docs/i18n-keymap.mdas shared Angular host/player MVP key-map bootstrapAcceptance
Tests
.venv/bin/python manage.py test lobby.tests.I18nResolverTestsnpm test -- --run tests/lobby-i18n.contract.test.tsReview summary (head:
784622058a)[sev:high] Acceptance mismatch: Issue #220 requires key families for host/player/system/errors, but
docs/i18n-keymap.mddefineshost/player/common/errorsand does not define asystemfamily.frontend.ui.system.*(or explicitly mapcommonas the system family and align wording with issue acceptance).[sev:high] Source-of-truth drift in backend→frontend mapping: the doc lists
host_only_action -> start_round_failed, but this key is not present inshared/i18n/lobby.json(backend.error_codesnorcontract.backend_to_frontend_error_keys).shared/i18n/lobby.jsonin a separate scoped change and then reference it here.What I validated:
docs/i18n-keymap.md)Please address the two high-severity items above, then re-request review.
Addressed review blockers for #220 alignment:
docs/i18n-keymap.md: now documented ashost/player/system/errors(with explicit note thatsystemis implemented underfrontend.ui.common.*in source-of-truth).host_only_action -> start_round_failedfrom the doc and added an explicit note that it is not present incontract.backend_to_frontend_error_keysinshared/i18n/lobby.json.Checks run:
git diff -- docs/i18n-keymap.md(scoped diff verification)rg -n "host_only_action|frontend.ui.common|system" docs/i18n-keymap.md -S(doc consistency spot-check)New head SHA:
bc78f79f78f4db28012bafcfe6b11e4d77571f47Re-review for commit
bc78f79f78f4db28012bafcfe6b11e4d77571f47:host,player,system,errors. Thesystemfamily is explicitly mapped tofrontend.ui.common.*, which matches source-of-truth structure.contract.backend_to_frontend_error_keysinshared/i18n/lobby.json.host_only_actionmapping is removed from the contract list and explicitly called out as intentionally out-of-scope.docs/i18n-keymap.md), with no runtime/code-path changes; safe to merge.Result: blockers resolved for this SHA; approving.
Submitting final verdict: APPROVED for commit
bc78f79f78.Integrator check: PR is not merge-ready on current head
bc78f79f78f4db28012bafcfe6b11e4d77571f47.Blocking required gate(s):
CI / test-and-quality (push)=pendingCI / test-and-quality (pull_request)=pendingApproval is present on current head, but merge is blocked until required CI checks are
success.New commits pushed, approval review dismissed automatically according to repository settings
Retask dev-fix for #220 completed.
Solved review finding:
docs/i18n-keymap.mdto use the required family labels (host/player/system) consistently (instead of mixed namespace labels), matching the acceptance-family contract.Checks run (short):
git diff -- docs/i18n-keymap.md✅rg -n '\| .*frontend.ui.(host|player)' docs/i18n-keymap.md -S→ no flow-table family mismatches ✅New head SHA:
c7ff3d96de73fdeca13096980825eccc9aa284e0Commit SHA:
c7ff3d96de73fdeca13096980825eccc9aa284e0SHA-disciplined re-review on current head
c7ff3d96de73fdeca13096980825eccc9aa284e0.Validation summary:
docs/i18n-keymap.mdchanged.host/player/system), with explicitsystem→frontend.ui.common.*note.host_only_action -> start_round_failedmapping remains removed and explicitly documented as intentionally absent from shared contract mapping.Result: APPROVED on this head SHA.