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