fluent.js icon indicating copy to clipboard operation
fluent.js copied to clipboard

Should markup be allowed in attributes set by Localized?

Open stasm opened this issue 6 years ago • 1 comments

<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.

stasm avatar Feb 15 '19 14:02 stasm

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.

soerenBoisen avatar Jan 11 '24 16:01 soerenBoisen