I am trying to make a application which supports multi language for this Im using react-intl which translates the data. While doing this Im facing a problem that when I am trying to translate it returns me as [OBJECT OBJECT] but im expecting a number or string.
I am using "react-intl": "2.7.2" for translation , "react-tooltip": "3.10.0", for rendering tooltip value
Tooltip Code. In this i want tooltip value to be Transalted into different language numberformat
<div className="column number"
data-tip={ <FormattedNumber value= {1234234545465655} />}>
1234234545465655
</div>
Please find the above image for reference
I am getting output as [OBJECT OBJECT]
Source Code:
import { FormattedMessage,FormattedNumber,formatNumber,injectIntl } from 'react-intl';
const TDSHighlights = ({
GlobalData,
currencySymbol,
currency,
props,
}) => (
{console.log(props)}
<div className="column number"
data-tip={num}>
Tooltip value
</div>
);
export default injectIntl(TDSHighlights);
Added sample code while printing props data not getting props value