You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The translate attribute is an empty string, "yes", or "no": MDN
The translate property is a boolean: MDN
Personally, I'd prefer to support both given JSX is already an arbitrary mix of attributes & properties, but this isn't just a types change and has some real world cost, so we'll have to stick to the property.
Describe the bug
[Per spec], translate property value is defined as empty string, "yes" or "no" but Preact expects boolean which produces TS error.
To Reproduce
Add
translate="no"
ortranslate="yes"
to any HTML element in Preact app.The text was updated successfully, but these errors were encountered: