Skip to content

Commit edf1777

Browse files
authored
refactor(i18n): re-key native i18n artifacts to content-hash identity (v2) (#123347)
* refactor(i18n): re-key native i18n artifacts to content-hash identity (v2) The native inventory stored a write-only 'line' field per entry, so any unrelated edit above a string rewrote apps/.i18n/native-source.json (~half of all commits touching it were pure line-number churn). Identity was (surface, path, source), duplicating the same string per file (5385 entries for 4187 unique pairs) and churning IDs on file moves. Locale artifacts were positional arrays repeating full English source text, so one inserted string rewrote diff spans in all 21 files. v2 artifacts: inventory entries keyed by (surface, source) with merged per-site {path, kind} lists and pure sha256 content-hash IDs; locale files become id-keyed sorted translation maps. Existing translations carry over by source match with a deterministic duplicate pick; the sticky-ID reuse machinery and positional validation are deleted. Everything under apps/.i18n plus generated platform locale artifacts is marked linguist-generated. ci-changed-scope gains a one-time owner-complete migration escape mirroring the control-ui precedent. CLI surface (baseline/check/sync/verify) and the locale-refresh workflow are unchanged. * ci: register run-attempt-state test in its Vitest lane Commit e04dfd2 added extensions/codex/src/app-server/run-attempt-state.test.ts without a lane owner, so the full-suite ownership audit (test/vitest-projects-config.test.ts) fails on main. Register it in the attempt-light shard alongside its run-attempt siblings.
1 parent 387937f commit edf1777

72 files changed

Lines changed: 129327 additions & 600303 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@
22
CLAUDE.md -text
33
src/gateway/server-methods/CLAUDE.md -text
44
ui/src/i18n/.i18n/* linguist-generated
5+
apps/.i18n/** linguist-generated
6+
apps/android/app/src/main/res/values-*/strings.xml linguist-generated
7+
apps/android/app/src/main/res/values-*/assistant.xml linguist-generated
8+
apps/android/app/src/thirdParty/res/values-*/accessibility_strings.xml linguist-generated
9+
apps/android/wear/src/main/res/values-*/strings.xml linguist-generated
10+
apps/android/app/src/main/java/ai/openclaw/app/i18n/NativeStringResources.kt linguist-generated
11+
apps/ios/Resources/Localizable.xcstrings linguist-generated
12+
apps/macos/Sources/OpenClaw/Resources/Localizable.xcstrings linguist-generated
13+
apps/ios/**/*.lproj/InfoPlist.strings linguist-generated

0 commit comments

Comments
 (0)