Skip to content

feat(l10n): align Game Center terms with the iOS 26 system and drop the dead #983 keys - #1085

Merged
wei18 merged 2 commits into
mainfrom
feat/1025-l10n-gc-terms
Sep 14, 2026
Merged

wei18 merged 2 commits into
mainfrom
feat/1025-l10n-gc-terms

Conversation

@wei18

@wei18 wei18 commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #1025
part of #1014

What

Aligns the two live Game Center entry-row terms with what the iOS 26 system dashboard shows in each locale, per the #1030 B-3 verdict, and deletes every dead Game Center key instead of translating it (PM ruling on #1025, 2026-09-14).

Evidence the terms were checked against real on-device vocabulary, not translated in isolation:

GC terms changed (both apps, identical)

Live keys: Achievements, Leaderboards (GameAppKit/GameCenterEntryRow.swift, String(localized:bundle: .main)), plus the NSGameKitFriendListUsageDescription purpose string in InfoPlist.xcstrings (read by the OS).

locale key before after source
ja Leaderboards ランキング リーダーボード PM ruling (system shows bare Leaderboard; katakana of the same word keeps the destination recognisable and reads as Japanese)
ja InfoPlist purpose string デイリーランキング デイリーリーダーボード same
ko Achievements 업적 목표 달성 system
ko Leaderboards 리더보드 순위표 system
ko InfoPlist purpose string 데일리 리더보드 데일리 순위표 same
th Achievements ความสำเร็จ ผลสำเร็จ system
th Leaderboards กระดานผู้นำ ลีดเดอร์บอร์ด system
th InfoPlist purpose string กระดานผู้นำประจำวัน ลีดเดอร์บอร์ดประจำวัน same
zh-Hant / zh-Hans / es / en — already match the system unchanged B-3

A JSON diff of every surviving key between origin/main and this branch shows exactly these 16 value changes (8 per app) and nothing else.

Orphan keys deleted (zero references in shipping code)

Proof command per key, repo-wide, quoted exact match:
rg -c --fixed-strings '"<key>"' --glob '*.swift' --glob '*.strings' --glob '*.plist' --glob '*.py' --glob '!**/.build/**'
Every key below returns 0 in App/ and Packages/; the only hits anywhere are in docs/designs/code/ (the standalone DesignPreviewKit prototype package, which has no catalog lookups): Leaderboard ×3, Couldn't load leaderboard. ×2, View full leaderboard ×1, Friends ×1.

Sudoku — 22 keys (23 blocks: the catalog carried Friends twice, both copies orphans):
Daily Rank, World, Friends ×2, Sign In, Connect with Friends, Allow Game Center to see your friends list to compare daily times with people you know., Allow Friends Access, No Rankings Yet, Be the first to set a time today., None of your friends have set a time today. Add friends in Game Center to compare., Open Game Center, Couldn't Load Rankings, Check your connection and try again., Top Ranked, Your Rank, You, Leaderboard, Couldn't load leaderboard., Enable Friends to see this list., error.gameCenter.not_authenticated.body, View full leaderboard, Practice puzzles aren't ranked.

Minesweeper — 20 keys:
the same 16 #983 keys (Daily Rank … You, single Friends) plus Leaderboard, Couldn't load leaderboard., View leaderboard, Practice puzzles aren't ranked.

Kept because live: Sign in to Game Center (GameAppKit/GameRoot.swift:129), Achievements, Leaderboards.

Deletion was a text splice (no JSON round-trip), so the diff is only the removed blocks plus one trailing-comma fix; key sets verified by JSON parse before/after (Sudoku 215 → 193, Minesweeper 188 → 168).

rg -n "Rankings|ランキング" --glob "*.xcstrings" → 0 hits.

Gates

mise run scan:l10n (after mise run gen:l10n_fixture; fixture is a byte copy, not hand-edited):

L10n gate passed: all 2 catalogs 0 placeholders, all 7 locales complete.

swift test --package-path Packages/SudokuKit --filter L10n: 4 tests in 2 suites passed.
mise run scan:design_contracts: PASS.

Docs

docs/designs/v3/design.md §12 #3 records the ja/ko/th ruling; §11 stage-3 "孤兒字串清理" marked done with the key list.

New v3 strings (#1051 / #1038)

A read-only scan of every user-visible literal added by 714a58c (#1051) and 9023023 (#1038) — Text / Label / String(localized:bundle: .main) / LocalizedStringKey / AppTab.titleKey — found every one present as a key in both catalogs (the gate's blind spot is a key absent entirely; none is). Literals present in only one catalog are per-app copy ("3 new boards" vs "3 new puzzles", Beginner/Intermediate/Expert vs Easy/Medium/Hard, Minesweeper's Failed state), not gaps. Interpolated keys (%lld day streak, Difficulty %lld of %lld, Best %lld) match in both catalogs. So this PR adds no new keys; scan:l10n already covered the 7 locales of the v3 strings.

Out of scope, filed as #1086: 51 non-GC extractionState: stale keys remain in Sudoku and 5 in Minesweeper. A reference count splits them into 20 true orphans (delete) and 36 live keys that Xcode mislabels stale because they are looked up from packages via bundle: .main (relabel manual, do not delete).

🤖 Generated with Claude Code

wei18 and others added 2 commits September 14, 2026 15:21
…he dead #983 keys

Live keys (GameCenterEntryRow, both apps): ja Leaderboards ランキング → リーダーボード;
ko Achievements 업적 → 목표 달성, Leaderboards 리더보드 → 순위표; th Achievements
ความสำเร็จ → ผลสำเร็จ, Leaderboards กระดานผู้นำ → ลีดเดอร์บอร์ด. Same three terms in the
InfoPlist friend-list purpose string. Source: #1030 B-3 verdict (GameCenterUI.framework
string tables); ja ruling per the PM decision on #1025.

Deleted every key with zero references in shipping code (rg over *.swift, *.strings,
*.plist, *.py; only docs/designs/code prototype hits remain): the #983 Daily Rank screen
cluster, the stale Leaderboard / Couldn't load leaderboard. / View full leaderboard /
Enable Friends… / error.gameCenter.not_authenticated.body keys, and the English
"No Rankings Yet" / "Couldn't Load Rankings" keys that used the banned term. The Sudoku
catalog also carried "Friends" twice; both copies were orphans.

Fixture regenerated via mise run gen:l10n_fixture. mise run scan:l10n passes.

part of #1025

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… §11 orphan-cleanup line

ja unifies on リーダーボード for the surviving Leaderboards key; ko/th align to the
iOS 26 GameCenterUI system terms; every zero-reference GC key was deleted rather
than translated, with the per-app key list recorded under stage 3.

part of #1025

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@wei18 wei18 changed the title feat(l10n): align game center terms with the ios 26 system and drop the dead #983 keys feat(l10n): align Game Center terms with the iOS 26 system and drop the dead #983 keys Sep 14, 2026
@wei18

wei18 commented Sep 14, 2026

Copy link
Copy Markdown
Owner Author

PM review record: dual CR + fresh-context acceptance, all clean. Merging.

  • CR (sonnet): re-proved every deleted key independently against origin/main (23 unique keys; the only hits are in the docs/designs/code prototype package, not catalog lookups). JSON-diffed surviving keys: exactly the 16 stated values changed (8 per app), English source unchanged. ja/ko/th purpose sentences read naturally. Fixture byte-identical to the catalog; scan:l10n logic passes both catalogs; docs §12 docs(readme): cleaner zh-en flow #3 and §11 consistent; SudokuKit --filter L10n 4/4. No findings.
  • Acceptance (haiku): ACCEPT on done-when items 1–4; 16 values match the system terms with no raw-substitution artifacts; orphan proofs spot-checked.

Follow-up: #1086 (remaining stale keys, 36 of 56 are live but mislabelled).

@wei18
wei18 merged commit d89dba4 into main Sep 14, 2026
21 checks passed
@wei18
wei18 deleted the feat/1025-l10n-gc-terms branch September 14, 2026 08:01
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.

feat(l10n): translate v3 new strings to all 7 locales, fix ja GC-terminology drift

1 participant