Closed alunny closed 9 years ago
Confirmed! Working on a fix at https://github.com/rxaviers/react-globalize-compiler/issues/1
Fixed by react-globalize-compiler 0.0.3, npm update
should do it for you. Please, just let me know on any problems.
Thanks Rafael!
Currently react-globalize-webpack-plugin incorrectly extracts calls to formatMessage, so calls like this:
result in the key
'Search Twitter'
instead ofSearch Twitter
. This is possibly due to calling JSON.stringify on a string somewhere, or of a bug in the AST traversal.I had a look at the code but it's not clear to me yet in which module this is happening - react-globalize-webpack-plugin, globalize-webpack-plugin, react-globalize-compiler, or globalize-compiler.