fluent.js
fluent.js copied to clipboard
Should markup be allowed in attributes set by Localized?
<Localized>
might wrap an element which accepts localizable props and then inserts them into the DOM as children. In such cases, it might be desirable to run the markup overlay logic on these props too, in addition to the value of the message used by the <Localized>
instance.
This should absolutely be allowed. Treating children attribute special here violates the principle of least surprise and limits the way we can translate our components.