Commit 83f7743
`displayFieldValue` rendered a select/picklist value by returning the matching
option's authored `label` from `engine.getSchema(name)` — locale-independent
metadata — while the shipped bundles carry those labels under
`objects.<object>.fields.<field>.options.<value>`. After #7230 localized the
field label, a zh-CN workspace read `阶段: Proposal → Closed Won`.
The tracked-change branch now resolves the option label through the same
locale-bound translator its field label already uses, authored label as
fallback. The fired-milestone branch is deliberately NOT localized and the
opt-out is by construction: it passes no option resolver, so its author-written
sentence and the author's own option label stay in one language.
Zero added reads on every write shape — a bundle lookup, not I/O — so #6656 /
PR #6977's retirement, preserved by #7291 and #7333, still stands, and
`displayFieldValue` stays synchronous.
Claude-Session: https://claude.ai/code/session_01BM1tNf5U3nEbHKR4fo5qVQ
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2443bb4 commit 83f7743
3 files changed
Lines changed: 707 additions & 4 deletions
File tree
- .changeset
- packages/plugins/plugin-audit/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments