mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The vitals tiles printed the canonical storage token beside the value, so a German screen read "15,4 breaths/min". The list view had a private map for a few count types; every other path passed the token through. useUnitDisplay().unitFor now resolves the token through one module (lib/measurements/unit-label): word tokens map to bundle keys, "celsius" to its symbol, kind markers (score, rating, count, event, level, ratio) to nothing. The list, the day view and the vitals tiles all read it. A guard walks every measurement type and every display source and refuses a unit that is neither a shared symbol nor resolved through the bundle.