Skip to content

fix(a11y-l10n): localize board-cell VoiceOver coordinate label in both apps - #776

Merged
wei18 merged 1 commit into
mainfrom
worktree-impl-755
Jul 11, 2026
Merged

wei18 merged 1 commit into
mainfrom
worktree-impl-755

Conversation

@wei18

@wei18 wei18 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

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 key Row %lld, Column %lld added to both app catalogs × 7 locales (mirror principle: identical entries in both catalogs).

  • MinesweeperCellButton.swift + BoardCellView.swift: 1-line change each (+ comment)
  • Both Localizable.xcstrings: additive-only splice (zh-Hant 列/欄 vs zh-Hans 行/列 grid terminology)
  • Fixture regenerated via mise run gen:l10n_fixture

Verification

  • mise run scan:l10n: all 2 catalogs, 0 placeholders, 7 locales complete
  • MinesweeperKit full suite: 232 tests pass; SudokuKit BoardViewTests: 18/18 pass, snapshot PNGs byte-identical (en rendering unchanged)
  • swiftlint --strict: 0 violations on changed files
  • Dual code review (mechanical + fact-check): both APPROVE; format-key generation cross-checked against pre-existing Digit %lld key mechanism

VoiceOver-only surface; no visual impact. Sudoku's conflict/given/value/Empty suffixes stay unlocalized, tracked under #771.

Closes #755

🤖 Generated with Claude Code

…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
wei18 enabled auto-merge (squash) July 11, 2026 08:58
@wei18
wei18 merged commit 6ecdae8 into main Jul 11, 2026
4 checks passed
@wei18
wei18 deleted the worktree-impl-755 branch July 11, 2026 08:59
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]>
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(a11y-l10n): board cell coordinate accessibilityLabel is unlocalized in BOTH apps (Row/Column interpolation)

1 participant