Top "React-intl" questions

React Components for internationalization.

Injecting react-intl object into mounted Enzyme components for testing

EDIT: Solved! Scroll down for the answer In our Component tests we need them to have access to the react-intl …

reactjs enzyme react-intl
How to retrieve a string in ReactIntl 2.0 without using FormattedMessage

Please correct me if I am wrong, FormattedMessage in ReactIntl returns a string wrapped by span tags. In ReactIntl 1.2, we …

reactjs react-intl
How do you pass a parameter to defineMessages in react-intl?

I have an error message like the one below: Could not retrieve data: ${e} How do I convert this to …

javascript reactjs react-intl
Attempted import error: 'addLocaleData' is not exported from 'react-intl'

It's return error when i try this code react-intl version 3.1.6 && react version 16.9 import { IntlProvider, FormattedMessage , addLocaleData} from 'react-intl';

reactjs react-intl
Use React-intl translated messages in Redux middleware

I support several languages in my application and use React-intl for this. I have the Redux middleware where I make …

reactjs redux react-redux redux-framework react-intl
How to add locale data dynamically using React Intl?

Am using React-intl for internationalization of an UI Util Library. The library has a folder say i18n wherein I …

react-intl babel-plugin-react-intl
Manual mock React-Intl with Jest to have snapshot testing

I have been struggling mocking React-Intl library with Jest because I'm having this error when I run tests: Invariant Violation: […

javascript unit-testing reactjs jestjs react-intl
How can I formatMessage with a tags (links) using react-intl?

I need to add links to the text I need translated. How can I formatMessages that have links? Right now …

javascript reactjs react-intl