mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-25 07:58:14 +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');
|
presets.push('jest');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (api.env('translations')) {
|
||||||
|
plugins.push(
|
||||||
|
[
|
||||||
|
'react-intl',
|
||||||
|
{
|
||||||
|
messagesDir: './translations/extractedMessages/',
|
||||||
|
extractSourceLocation: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
presets,
|
presets,
|
||||||
plugins,
|
plugins,
|
||||||
|
Loading…
Reference in New Issue
Block a user