Cascade 0.2.1 — avatars vs browser translation
A user called Ernest renders as a circle containing E. Read a Spanish forum with Chrome's translation switched on and e is a Spanish conjunction meaning and — so every avatar on the page became a circle containing the word AND, overflowing its own border.
It gets reported as broken avatars, because that is exactly what it looks like. Any single letter is a word in some language: a, y, o, e, i. An initial is identity, not prose.
Avatars are now marked notranslate, so translators leave them alone.
🚨 Worth knowing if you hit this elsewhere: the opt-out has to be the class, not translate="no". HTMLElement.translate is a boolean property and Mithril sets known properties directly rather than writing attributes, so assigning the string 'no' assigns something truthy and the element comes out as translate="yes" — the exact opposite, silently. Measured across 70 avatars before the fix: every one of them translate=yes.
- Support: https://ernestdefoe.online
- Packagist: https://packagist.org/packages/ernestdefoe/cascade