Skip to content

Releases: akameco/babel-plugin-react-intl-auto

v3.3.0

24 Mar 10:09
Compare
Choose a tag to compare
  • 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

v3.2.0

23 Mar 10:05
Compare
Choose a tag to compare

v3.1.1...v3.2.0

v3.1.1

19 Mar 11:20
Compare
Choose a tag to compare

v3.1.0...v3.1.1

v3.1.0

28 Nov 17:20
Compare
Choose a tag to compare
  • Add support for custom separator (#89) 40e080c
  • chore(deps): update all non-major dependencies 4959dd5
  • chore(deps): update all non-major dependencies d2abbc4
  • chore(deps): update dependency @types/jest to v24.0.21 f9f8b05
  • chore(deps): lock file maintenance 03b8e55

v3.0.1...v3.1.0

v3.0.1

31 Oct 16:24
Compare
Choose a tag to compare
  • chore(deps): lock file maintenance 34c6af4
  • chore(deps): update all non-major dependencies 219bf24
  • chore(deps): update all non-major dependencies 1370d73

v3.0.0...v3.0.1

v3.0.0

16 Oct 19:00
Compare
Choose a tag to compare

Breaking Change

Drop node v6.

Refactor

v2.3.0...v3.0.0

v2.3.0

05 Sep 20:12
Compare
Choose a tag to compare
  • chore(deps): upgrade dependencies 0629662
  • Allow to provide custom module name/path from where imports will… (#61) 4c71529

v2.2.0...v2.3.0

Support useIntl

22 Aug 12:36
Compare
Choose a tag to compare

useIntl support #72

import { useIntl } from 'react-intl'

const MyComponent = () => {
  const intl = useIntl()
  const label = intl.formatMessage({ defaultMessage: 'Submit button' })
  return <button aria-label={label}>{label}</button>
}

v2.1.0...v2.2.0

intl.formatMessage() support

20 Aug 15:18
Compare
Choose a tag to compare
  • Feature intl.formatMessage() support (#68) ad7e198

v2.0.0...v2.1.0

Upgrade react-intl to v3.1.1

08 Aug 13:40
Compare
Choose a tag to compare

The type definition was updated. If you are using typescript, you need to update to react-intl v3.

v1.7.2...v2.0.0