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
I want to display size of the list in the FormattedMessage, so I used values to achieve it. It works good but it dont show 0 as a value. I have a reduced test case below:
import React, { Component } from 'react'
import {FormattedMessage} from 'react-intl'
class List extends Component {
render() {
let userNumber=0; //if I change it to negative or positive value, it is displayed but 0 is not displayed
return (
<FormattedMessage
id = 'active-users'
description = 'ACTIVE USERS'
defaultMessage = 'ACTIVE USERS ({userList})'
values = {{
userList: userNumber
}}
/>
)
}
}
export default List
The text was updated successfully, but these errors were encountered:
I want to display size of the list in the
FormattedMessage
, so I usedvalues
to achieve it. It works good but it dont show 0 as a value. I have a reduced test case below:The text was updated successfully, but these errors were encountered: