You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb28b7c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(i18n): an edit in a Chinese script the label lacks adds its own entry
The shared write limb no longer owns the other script's entry: a zh-Hant
edit over { en, zh } adds zh-Hant and keeps the Simplified text, and a
clear there removes nothing. Reading is unchanged.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibxSGAjHBvjATmenUGp
fix(i18n): an edit in a Chinese script the label lacks adds its own entry instead of overwriting the other script
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
`setLocalized` and `clearLocalized` no longer treat the other Chinese script's entry as the editor's own. A `zh-Hant` (or `zh-TW`, `zh-HK`) edit of a label written as `{ en: 'Customer', zh: '客户' }` now adds a `zh-Hant` entry and keeps the Simplified text; before, it overwrote `zh` with Traditional text. A clear in that case removes nothing, because the box was showing the other script's text as a fallback. A Simplified editor over a Traditional-only map is handled the same way. Reading is unchanged: `pickLocalized` still shows the other script's entry until one of the reader's own script exists. Every other language, and every map that has an entry of the editor's script, writes exactly as before.
0 commit comments