Support useKey option to intl.formatMessage
import { useIntl } from 'react-intl';
intl.formatMessage({
key: 'foobar',
defaultMessage: 'hello'
});
↓ ↓ ↓ ↓ ↓ ↓
import { useIntl } from 'react-intl';
intl.formatMessage({
key: 'foobar',
defaultMessage: 'hello',
"id": "path.to.file.foobar"
});