Skip to content

v3.3.0

Latest
Compare
Choose a tag to compare
@akameco akameco released this 24 Mar 10:09
· 80 commits to master since this release
  • feat: useKey support to intl.formatMessage (#119) a0977f8

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"
});

v3.2.0...v3.3.0