We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return type of intl.formatList is string, like intl.formatMessage.
intl.formatList
string
intl.formatMessage
Return type of intl.formatList is React.ReactNode. It makes impossible to use intl.formatList inside intl.formatMessage, for example:
React.ReactNode
intl.formatMessage(fileTypeErrorMessage, { fileTypes: intl.formatList(['txt', 'md'], {type: 'union'}) });
react-intl@3.9.1
The text was updated successfully, but these errors were encountered:
6629899
No branches or pull requests
Expected behavior
Return type of
intl.formatList
isstring
, likeintl.formatMessage
.Current behavior
Return type of
intl.formatList
isReact.ReactNode
. It makes impossible to useintl.formatList
insideintl.formatMessage
, for example:Your Environment
react-intl@3.9.1
The text was updated successfully, but these errors were encountered: