Open stasm opened 6 years ago
The solution might be similar to the one proposed in #184. By wrapping the prop element in an id
-less <Localized>
developers would be able to use attrs
:
<Localized id="hello"
clickablePortrait={
<Localized attrs={{title: true}}>
<Portrait.../>
</Localized>
}
>
<p>{"Hello, <clickablePortrait></clickablePortrait>!"}</p>
</Localized>
We should make it possible for developers to control which attributes can be translated on elements passed as props to
<Localized>
.