Skip to content

Support for useKey option

Choose a tag to compare

@akameco akameco released this 13 Mar 23:01
· 205 commits to master since this release

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

v1.6.1...v1.7.0