Support for useKey option
useKey
Only works with FormattedMessage and FormattedHTMLMessage. Instead of
generating an ID by hashing defaultMessage, it will use the key property if
it exists.
Type: boolean
Default: false
Example
<FormattedMessage key="foobar" defaultMessage="hello" />
↓ ↓ ↓ ↓ ↓ ↓
<FormattedMessage id="path.to.file.foobar" key="foobar" defaultMessage="hello" />- chore(deps): upgrade dependencies f583adb
- refactor: upgrade error message 5428f78
- Add @shahyar as a contributor eb1e2c0
- Add support for useKey option (#67) a6e8784
- chore(jest): update config d8a18ab
- refactor: use string-snapshot-serializer 23e4fd9
- Merge pull request #65 from akameco/selealize 07dad93
- refactor: add Serializers for Readability ffc858d