Skip to content

fix(web): cover messages/*.json in the format check - #698

Merged
gkhngyk merged 1 commit into
mainfrom
fix/683-format-check-messages
Aug 10, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/683-format-check-messages

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The format scripts only globbed src/**/*.{ts,tsx}, so the translation files were never checked. An indentation slip had already landed through that gap — bulk.dismissAllConfirm in en.json sits at 5 spaces instead of 6, introduced by #653 — with CI green the entire time.

Two changes:

  • Reformat the offending line (formatting only, no translation value touched).
  • Widen both format and format:check to include messages/**/*.json, so the same class of drift can't land silently again.

Spotted by @jonsuguiyama in #680.

Related issue

Closes #683

Type of change

  • fix — Bug fix

How to test

The point of this PR is that the check now catches something, so testing it means proving the gap is closed rather than merely currently clean:

cd web
yarn format:check                  # passes

# break it on purpose, then re-run
# (e.g. remove one space of indentation from a key in messages/en.json)
yarn format:check                  # now fails on messages/en.json

# restore
yarn format
yarn format:check                  # passes again

I ran exactly that sequence: clean → deliberately misindented → check failed on messages/en.json → restored → check passed.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/)
  • Commits follow Conventional Commits
  • yarn lint passes — no source files touched
  • yarn typecheck passes — no source files touched
  • yarn format:check passes, now including the translation files
  • Changes are focused — one concern per PR

The format scripts only globbed src/**/*.{ts,tsx}, so the translation files
were never checked — and an indentation slip in en.json had already landed
through that gap (bulk.dismissAllConfirm at 5 spaces instead of 6), with CI
green the whole time.

Reformats the offending line and widens both the format and format:check
globs to include messages/**/*.json. Verified the check now fails on a
deliberately misformatted en.json and passes once restored, so the gap is
actually closed rather than just currently clean.

No translation values changed — formatting only.

Closes #683
@gkhngyk
gkhngyk merged commit f60ce8d into main Aug 10, 2026
5 checks passed
@gkhngyk
gkhngyk deleted the fix/683-format-check-messages branch August 10, 2026 20:47
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.

web: messages/*.json escapes format:check — an indentation slip already landed in en.json

1 participant