Repository navigation
Commit edf1777
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
File tree
- apps
- .i18n
- native
- android
- app/src/main/res
- values-ar
- values-de
- values-es
- values-fa
- values-fr
- values-hi
- values-in
- values-it
- values-ja
- values-ko
- values-nl
- values-pl
- values-pt-rBR
- values-ru
- values-sv
- values-th
- values-tr
- values-uk
- values-vi
- values-zh-rCN
- values-zh-rTW
- wear/src/main/res
- values-ar
- values-de
- values-fa
- values-fr
- values-hi
- values-in
- values-it
- values-ja
- values-ko
- values-nl
- values-pl
- values-ru
- values-tr
- values-uk
- values-vi
- values-zh-rCN
- values-zh-rTW
- ios/Resources
- macos/Sources/OpenClaw/Resources
- scripts
- src/scripts
- test
- scripts
- vitest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments