Skip to content

refactor: unify backend i18n error handling and update documentation - #53

Merged
markmybytes merged 4 commits into
mainfrom
refactor/backend-i18n-key
Aug 28, 2026
Merged

refactor: unify backend i18n error handling and update documentation#53
markmybytes merged 4 commits into
mainfrom
refactor/backend-i18n-key

Conversation

@markmybytes

Copy link
Copy Markdown
Owner

No description provided.

Captures the full context, decisions, architecture, reference adopter (CPU temp), 21-touchpoint inventory, migration phases, and anti-patterns for unifying how Go backend messages/errors cross to the Vue frontend for translation. Triggered by CPU temp follow-ups (#48/#49/#50); the author plans to implement the unification later using this doc as the reference.
Backend emits *errcode.Error via main.go ErrorFormatter; frontend routes all 48 catch sites through decodeError(err, t) util. pkg/errcode adds minimal Error type (code + params). 80 new error codes seeded in en.json + zh_Hant_HK.json. Confidence tests: decodeError (7), i18n-completeness (6) including errcode.New/Newf coverage grep. See BACKEND_I18N_HANDOFF.md (unstaged).
@markmybytes
markmybytes merged commit cccb05d into main Aug 28, 2026
2 checks passed
@markmybytes
markmybytes deleted the refactor/backend-i18n-key branch August 28, 2026 15:12
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