1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

add configuration to run extraction of messages for translation

This commit is contained in:
slowbackspace 2019-02-12 18:37:34 +01:00
parent 06ddcbfbf2
commit aa09704146

View File

@ -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,