Repository navigation
chore(l10n): localize MS board control strings and Sudoku cache-cleared toast - #742
Merged
Merged
Conversation
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
enabled auto-merge (squash)
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #731; completes the last live item of #688 (item 6).
What (5 files, +313/−4)
MinesweeperBoardViewnow routes the toggle's a11y label/value/hint through the catalog viaString(localized:bundle:)("Reveal", "Flag", "Tap mode: %@", "Double tap to switch tap mode" — 4 keys × 7 locales)."Cache cleared"was a bare literal (English in all 7 locales); now localized, key + 7 translations copied verbatim from MS's existing entry.gen:l10n_fixture(not hand-edited).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".#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