Skip to content

feat(problem): CheckMessages checks an apiErrors map loaded from a split catalog - #8

Merged
giraffesyo merged 1 commit into
canaryfrom
feat/check-messages
Oct 1, 2026
Merged

giraffesyo merged 1 commit into
canaryfrom
feat/check-messages

Conversation

@giraffesyo

Copy link
Copy Markdown
Member

Summary

problemtest.CheckCatalog reads one JSON file with a top-level apiErrors key. Apps that split their catalog into one file per namespace (core is about to: locales/en/apiErrors.json) have the map itself, not a wrapper. CheckMessages(tb, messages, registries...) runs the same check on a map the caller loaded; CheckCatalog now calls it, with unchanged messages.

Testing

  • make check
  • TestCheckMessages covers a missing message; TestCheckCatalog is unchanged.

Checklist

  • make check passes
  • A new or changed shared message is in every language in packages/problem/src/messages/ (none changed)
  • No code, rule or param was renamed (they are API contract)

@giraffesyo
giraffesyo merged commit 25e8eb2 into canary Oct 1, 2026
3 checks passed
@giraffesyo
giraffesyo deleted the feat/check-messages branch October 1, 2026 01:13
@github-actions github-actions Bot mentioned this pull request Oct 1, 2026
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