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:
parent
06ddcbfbf2
commit
aa09704146
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user