Repository navigation
refactor(i18n): share Apple catalog reader - #144848
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 11, 2026, 8:56 AM ET / 12:56 UTC (Revision 2). ClawSweeper reviewWhat this changesShares the Apple localization catalog reader across iOS and macOS while retaining their existing builders and generated outputs. Merge readiness⛔ Blocked before merge - 1 item remains The refactor remains useful and has no actionable correctness findings. The updated evidence addresses the previous review's output-equivalence request, and the PR is now ready for ordinary maintainer review. Priority: P3 Review scores
Verification
How this fits togetherApple localization tooling combines existing catalogs, the native string inventory, and translations into platform-specific catalogs. Synchronization and macOS packaging consume those catalogs to produce app localization resources. flowchart TD
A[Existing platform catalog] --> D[Shared catalog reader]
B[Native string inventory] --> D
C[Locale translations] --> D
D --> E[Platform-specific builder]
E --> F[Catalog verification and sync]
E --> G[macOS localization resources]
Before merge
Agent review detailsSecurityNone. PR surfaceOther -8. Total -8 across 1 file. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one private reader with explicit platform builders, preserving existing catalog formats, read ordering, and generated bytes. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes duplicate implementation rather than fixing a reported runtime defect; the duplication is directly visible in current main. Is this the best way to solve the issue? Yes. A private reader parameterized by catalog path and existing builder removes duplication without introducing another policy owner, cache, or public API. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 66c7fad06385. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit 'f2ce199238e974b1d4caff8f11112aa51eb00d9e': (310 commits) refactor(copilot): deduplicate transcript user text (#144888) refactor(sessions): await discovery and config readiness (#144854) refactor(e2e): deduplicate release file assertions (#144904) ci: keep growing hosted test plans within the job cap (#144965) fix(macos): avoid stale dashboard command assertions (#144710) refactor(memory): await standing intent operations (#144832) refactor(ui): derive native device settings types from schemas (#144705) refactor(memory): await journal operations and allocate sequences atomically (#144824) refactor(tests): share command field assertions (#144955) refactor(matrix): share bounded context cache insertion (#144939) refactor(i18n): share Apple catalog reader (#144848) fix(doctor): preserve legacy registry files when quarantine fails (#144787) refactor(tests): reuse PixVerse auth fixtures (#144926) fix(bonjour): silence transient ENODEV socket warnings (#144870) fix(matrix): preserve unrelated files when migration fails (#144883) feat(sqlite): run Team Reports storage in owned workers (#144871) fix(update): install explicit same-version artifacts (#144894) refactor(ui): share cached message extraction (#144244) refactor: normalize Claude usage responses at one boundary (#144707) refactor: simplify CLI child listener registration (#144929) ...
The head branch is in openclaw/openclaw.
What Problem This Solves
Apple localization tooling maintains the same catalog-reading flow separately for iOS and macOS. This maintainer-requested refactor removes that duplication while preserving the platform-specific builders.
Why This Change Was Made
One private reader takes an explicit catalog path and existing builder. All four callers preserve platform pairings, sequential reads and parsing, error propagation, and verification followed by an independent reread. No caching is introduced.
User Impact
No user-facing behavior change is intended. Exported builders, serialization, locale policy, and native app code are unchanged.
This reader-only refactor changes neither catalog format nor persistent state, so migration proof is not applicable.
Evidence
Paired CLI proof uses frozen candidate source/data at
5ea54a9889e76bbbb1724f20c96858e81b78f00d, restoring only the original reader from parent0a4447ecc53e24449cbc2b8c2f9725faeee1213afor the baseline.compile-macosfollowed bysync-ios --writein each isolated copy; all four commands exited successfully. Each variant produced 43 compiled files, and all 86 sync targets matched in membership, modes, hashes, and bytes. Sync was idempotent, not a stale-catalog rewrite exercise. Source and dependencies stayed unchanged; child processes joined and scratch was removed.