Repository navigation
fix(a11y-l10n): localize board-cell VoiceOver coordinate label in both apps - #776
Merged
Merged
Conversation
…h apps
MinesweeperCellButton and Sudoku's BoardCellView both built the per-cell
VoiceOver location prefix via plain string interpolation
("Row \(row + 1), Column \(column + 1)"), bypassing the catalog — so VO
read English coordinates in all non-en locales. Same #741 finding family,
different mechanism (interpolation instead of ternary/switch literals);
#756 deliberately left it for a cross-app pass per the mirror principle.
Both sites now route through String(localized:bundle:), producing one
shared format key "Row %lld, Column %lld" added to BOTH app catalogs
x 7 locales (zh-Hant uses Taiwan grid terms 列/欄; zh-Hans uses Mainland
行/列). The SudokuAppCompositionTests fixture was regenerated via
mise run gen:l10n_fixture (never hand-edited).
Out of scope, tracked separately: Sudoku's conflict/given/value/Empty
state suffixes in the same accessibilityLabel remain unlocalized (#771).
Verification: scan:l10n passes (2 catalogs, 7 locales complete);
MinesweeperKit full suite 232 tests pass; SudokuKit BoardViewTests 18/18
pass with byte-identical snapshot PNGs (en-rendered text unchanged).
Note: BoardViewTests' label assertions compare against the test's own
English re-implementation of the format (labelFor(cell:)), so they do
not exercise the catalog routing; the routed path is covered by the
compiler-generated key matching the catalog entry (same mechanism as
the pre-existing "Digit %lld" key). swiftlint --strict: 0 violations
on changed files.
Closes #755
Co-Authored-By: Claude Fable 5 <[email protected]>
wei18
enabled auto-merge (squash)
July 11, 2026 08:58
This was referenced Jul 11, 2026
wei18
added a commit
that referenced
this pull request
Jul 11, 2026
…722) (#782) Timeline log for the five-issue wave: cross-app coordinate a11y l10n (#755/PR #776), Sudoku state-suffix l10n (#771/PR #777), the #716 premise refutation + pencil-notes snapshot regression lock (PR #778), MS practice personal bests via seed-derived ids (#705/PR #779), and Sudoku digit-first input (#722/PR #781). Records the three pre-push review catches, the seed-reuse design decision, and process notes (haiku numeric spot-checks, reviewer send-report instruction, filtered-batch verification). 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.
What
Both apps' board-cell VoiceOver coordinate label ("Row R, Column C") was plain string interpolation, bypassing the l10n catalog — VoiceOver read English coordinates in all non-en locales. Both call sites now route through
String(localized:bundle:)with ONE shared format keyRow %lld, Column %lldadded to both app catalogs × 7 locales (mirror principle: identical entries in both catalogs).MinesweeperCellButton.swift+BoardCellView.swift: 1-line change each (+ comment)Localizable.xcstrings: additive-only splice (zh-Hant 列/欄 vs zh-Hans 行/列 grid terminology)mise run gen:l10n_fixtureVerification
mise run scan:l10n: all 2 catalogs, 0 placeholders, 7 locales completeBoardViewTests: 18/18 pass, snapshot PNGs byte-identical (en rendering unchanged)swiftlint --strict: 0 violations on changed filesDigit %lldkey mechanismVoiceOver-only surface; no visual impact. Sudoku's
conflict/given/value/Emptysuffixes stay unlocalized, tracked under #771.Closes #755
🤖 Generated with Claude Code