settings-value-round-tripped-through-its-label
Installation
SKILL.md
Do not round-trip a setting through its own label
The shape is everywhere: pair each stored value with its translated caption, show the captions, get back the chosen caption, look the value up again by string equality.
// adapted — the reverse lookup that is the bug; list and setter renamed, body inlined
styleLabels.firstOrNull { it.second == selected }?.first?.let { setStyle(it) }
Forward is fine — value to caption, for the subtitle under the row. It is the return trip that depends on every caption being unique in every language, which is not a property anyone maintains.