2021-02-10 09:50:06 +00:00
|
|
|
module.exports = {
|
|
|
|
input: [
|
|
|
|
'frontend/js/**/*.{js,jsx}',
|
|
|
|
'modules/**/*.{js,jsx}',
|
2021-04-27 07:52:58 +00:00
|
|
|
'!frontend/js/vendor/**',
|
2021-02-10 09:50:06 +00:00
|
|
|
],
|
|
|
|
output: './',
|
|
|
|
options: {
|
|
|
|
sort: true,
|
|
|
|
func: {
|
|
|
|
list: ['t'],
|
2021-04-27 07:52:58 +00:00
|
|
|
extensions: ['.js', '.jsx'],
|
2021-02-10 09:50:06 +00:00
|
|
|
},
|
|
|
|
trans: {
|
|
|
|
component: 'Trans',
|
|
|
|
i18nKey: 'i18nKey',
|
|
|
|
defaultsKey: 'defaults',
|
|
|
|
extensions: ['.js', '.jsx'],
|
2021-04-27 07:52:58 +00:00
|
|
|
fallbackKey: false,
|
2021-02-10 09:50:06 +00:00
|
|
|
},
|
|
|
|
resource: {
|
|
|
|
savePath: 'frontend/extracted-translations.json',
|
|
|
|
jsonIndent: 2,
|
2021-04-27 07:52:58 +00:00
|
|
|
lineEnding: '\n',
|
|
|
|
},
|
|
|
|
},
|
2021-02-10 09:50:06 +00:00
|
|
|
}
|