rxaviers / react-globalize-compiler

I18n support for React applications using Globalize
MIT License
5 stars 2 forks source link

Doesn't work if `FormatMessage` is a constant lifted outside the Component #10

Closed necolas closed 6 years ago

necolas commented 8 years ago

We tried using https://www.npmjs.com/package/babel-plugin-transform-react-constant-elements but the globalize compiler doesn't extract phrases from FormatMessage after the code is rearranged by the plugin. To get around this, we stopped using FormatMessage in favour of Globalize.formatMessage