Problem:- How we can translate the placeholder text for input-box using formatmessage?
If we use react-intl its not meant to be used with placeholders, alternate text, etc. They render HTML, not plain text, which is not useful in our scenario.
1. Incase we have one or two values to translate, we can use FormattedMessage as wrapper as shown in below code,
2.We can also use injectIntl api for achieving the same incase we need more translations to perform.
Learn more and share more 🙂