-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versions after 2.2.1 deletes translation files content #55
Comments
Hello @Mi5i, @Lpaydat and @zarv1k (mentioning because you liked the issue above) Please try the following
['react-intl-auto', { removePrefix: 'app/' }],
[
'react-intl',
{
extractFromFormatMessageCall: true,
messagesDir: 'build/extract-messages'
}
]
// presets.unshift({
// plugins: [
// [
// babel_plugin_react_intl_1.default,
// Object.entries(pluginOptions).reduce((acc, [key, value]) => {
// if (babelPluginReactIntlOptions.includes(key)) {
// return Object.assign(Object.assign({}, acc), { [key]: value });
// }
// return acc;
// }, {})
// ]
// ]
// }); See #64 Hope this helps |
For convenience, you can try with |
Fixed. Please use the latest version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with two versions:
node
10.x and 12.13.0:npm
6.11.13 and 6.12.0:The v2.3.0 - v2.3.3 all versions delete translation files content.
Instead of en fills with the extracted messages and other languages are with key and "" value pairs, all translation files content filled only "{}"
Simple test: as in the example shows.
The text was updated successfully, but these errors were encountered: