Releases: akameco/babel-plugin-react-intl-auto
Releases · akameco/babel-plugin-react-intl-auto
v3.3.0
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
- new option:
relativeTo
#108 by @pooleparty - update dependencies
v3.1.1
- fix: fix an unexpected crash (#110) 14f4145
- refactor: use Array.isArray c8c8ec1
- fix: fix an unexpected crash 5bf29eb
- fix: lint errors feb210e
- Update all non-major dependencies 3ceb511
- Update dependency @types/jest to v25 0e3ec88
- Lock file maintenance ef94fa6
- Update jest monorepo to v25 (#102) af8ae7b
- Lock file maintenance 76cb031
- Lock file maintenance (#93) de62ead
- Update all non-major dependencies (#92) 734b0c4
- Update dependency babel-plugin-tester to v8 (#91) afb2d11
v3.1.0
v3.0.1
v3.0.0
v2.3.0
Support useIntl
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>
}
intl.formatMessage() support
Upgrade react-intl to v3.1.1
The type definition was updated. If you are using typescript, you need to update to react-intl v3.
- chore(deps): update dependencies 0c3f6c0
- Add @remcohaszing as a contributor bdaf4a2
- refactor: upgrade react-intl to 3.1.1 (#71) 4e9e88a