Skip to content

chore(l10n): localize MS board control strings and Sudoku cache-cleared toast - #742

Merged
wei18 merged 1 commit into
mainfrom
chore/l10n-731-688item6
Jul 9, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/l10n-731-688item6

Conversation

@wei18

@wei18 wei18 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closes #731; completes the last live item of #688 (item 6).

What (5 files, +313/−4)

Verification

  • scan:l10n: both catalogs, 0 placeholders, all 7 locales complete (CI re-enforces). Reviewer machine-verified all 35 new entries + MS↔Sudoku parity on "Cache cleared".
  • MinesweeperKit 224/224; SudokuKit filtered runs green (full-suite hit the known local segfault, memory-diagnosed on unmodified main). swiftlint --strict 0; board snapshots passed, not recorded.

#688 closeout

Item 6 was #688's last live item — items 1/3 are recorded won't-fixes, 2/5a/5b shipped (#725), item 4 → #716, the loader trap → #719. Closing #688 once this merges.

Follow-up: two more MS board string sites with the same ternary-bypass pattern (context-menu Flag/Unflag, statusText/pause) filed as #741 (out of this PR's scope).

🤖 Generated with Claude Code

Both catalogs had user-visible strings shipping as bare English literals:
MS's board tap-mode toggle (mode name + a11y label/value/hint, added with
the #724 icon-toggle refactor and pre-existing in the old segmented
Picker) never had catalog keys, and Sudoku's "Cache cleared" success
toast was left unlocalized when #687 localized its sibling failure
message. Both now resolve via String(localized:bundle:) against new
7-locale entries (en source, zh-Hant primary, ja/ko/es/th/zh-Hans fanned
out per the ai-translated-localization flow); Sudoku's entry copies MS's
existing translations verbatim for parity. L10n fixture regenerated via
gen:l10n_fixture; scan:l10n gate passes.

closes #731
refs #688 (item 6; #688's other items are already won't-fixed or moved
to their own issues)

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 9, 2026 02:01
@wei18
wei18 merged commit 99d084f into main Jul 9, 2026
4 checks passed
@wei18
wei18 deleted the chore/l10n-731-688item6 branch July 9, 2026 02:01
wei18 added a commit that referenced this pull request Jul 12, 2026
…ing tint (#780)

The reveal/flag mode toggle was icon-only, so a sighted player had no
in-context hint of which mode was active or what a tap would do (the
mode name was VoiceOver-only). The button now pairs its icon with the
existing "Reveal"/"Flag" catalog strings (#742), matching the modes'
own a11y labels.

Fixes #767: flag mode's tint borrowed theme.status.warning, which
design-system.md reserves for success/warning/error signaling, not
mode selection — routine flag placement read as "something is wrong."
Flag mode now tints with accent.muted (icon/text switch to
text.primary for contrast, mirroring the existing accent.muted +
text.primary pattern used elsewhere for that token), keeping the two
modes color-distinct without the warning connotation. Confirmed via
grep that MinesweeperBoardView.swift:628 was the only status.warning
use for mode-selection; MinesweeperCellButton's flagged-cell glyph is
a different, legitimate danger-marker use and is unchanged.

Re-recorded the MinesweeperUITests board snapshot baselines that
render the toggle (covered/mid-reveal/flagged/mine-hit, iPhone +
iPad, light + dark) to match the new button.

Co-authored-by: Claude Fable 5 <[email protected]>
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.

chore(l10n): MS board control strings are plain English, not in the catalog

1 participant