Closed necolas closed 6 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
FormatMessage
Globalize.formatMessage
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 usingFormatMessage
in favour ofGlobalize.formatMessage