allow configuration of more metadata fields #80
Description
in my current internationalization project i'm focusing on clear communication between translators and devs. it would be helpful if we could define our own metadata fields that would be treated like the description
field - copied along with id and defaultMessage into the extracted json files but otherwise unused during rendering. We wish to have a field that specifically references our ticketing system.
The ideal setup would be to make babel-plugin-react-intl
configurable so we could define which fields we want treated with metadata, with the default being [ 'description' ]
.
Having taken a look at the code this appears to be a simple change affecting ~10 lines of code or so. I wanted to start the conversation to see if this would be a welcome change before submitting a pr.
Thoughts?