diff --git a/babel.config.js b/babel.config.js index 63b60eee..d35cc679 100644 --- a/babel.config.js +++ b/babel.config.js @@ -44,6 +44,18 @@ module.exports = (api) => { presets.push('jest'); } + if (api.env('translations')) { + plugins.push( + [ + 'react-intl', + { + messagesDir: './translations/extractedMessages/', + extractSourceLocation: true, + }, + ], + ); + } + return { presets, plugins,