Message extraction fails when using both Globalize.formatMessage and <FormatMessage>#5
Message extraction fails when using both Globalize.formatMessage and <FormatMessage>#5alunny wants to merge 2 commits intorxaviers:masterfrom
Conversation
|
I think I've found what's up, should have a real patch shortly. |
|
👏 👍 |
|
So part of the problem (at least in a test case) is that Should |
|
Using the transform in here as well sounds good to me. Ideally, Globalize should adopts the same strategy for default messages that react-globalize has. Then, we'll be able to move all this stuff into globalize-compiler (where it should live). PS: About variable names, the ideal solution should keep a table of variables (per scope) dynamically generated from |
There was a problem hiding this comment.
I found this useful during debugging - not strictly necessary.
|
I think we'll want to do the same for |
|
Sounds good to me, thanks. |
There was a problem hiding this comment.
this is a duplicate file now (this was already in extract-default-message-transforms but not exported)
formatMessage and messageFormatter Signed-off-by: Andrew Lunny <alunny@twitter.com>
|
Should be ready to merge now. |
There was a problem hiding this comment.
For consistency, let's move lib/extract-default-messages-transforms/babel-globalize2-default-into-globalize.js to lib/extract-transforms/ given it's used by both default-messages and normal compiler?
|
Other than one comment above, it looks good to me. |
also rm extract-default-messages-transforms directory, since it's empty now Signed-off-by: Andrew Lunny <alunny@twitter.com>
|
updated now :) |
|
Thank you @alunny, landed and published by 0.0.6. |
PR is just a failing test case - I can try to fix if you don't have time to have a look.