-
Notifications
You must be signed in to change notification settings - Fork 42
Description
- version: 1.0.1
nodeversion: v10.16.0npm(oryarn) version: 6.9.0
**Do you want to request a feature or report a bug?:
Feature
**What is the current behavior?:
Do not support extracting message text and ID from intl.formatMessage function call
**What is the expected behavior?:
When extracting messages and IDs , Extract them from intl.formatMessage function calls as well
**Suggested solution:
Accept the extractFromFormatMessageCall argument in extract-messages command and pass it to babel-plugin-react-intl through extract-react-intl
So that, When extractFromFormatMessageCall is passed as an argument, It will generate the message text and IDs passed to intl.formatMessage calls.
extractFromFormatMessageCall: Opt-in to extract from intl.formatMessage call with the same restrictions, e.g: has to be called with object literal such as intl.formatMessage({ id: 'foo', defaultMessage: 'bar', description: 'baz'})