mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Extract translation keys with i18next-scanner GitOrigin-RevId: 5ba1b1e48c188290a0a462e830bc60b3d5b62c3d
28 lines
534 B
JavaScript
28 lines
534 B
JavaScript
module.exports = {
|
|
input: [
|
|
'frontend/js/**/*.{js,jsx}',
|
|
'modules/**/*.{js,jsx}',
|
|
'!frontend/js/vendor/**'
|
|
],
|
|
output: './',
|
|
options: {
|
|
sort: true,
|
|
func: {
|
|
list: ['t'],
|
|
extensions: ['.js', '.jsx']
|
|
},
|
|
trans: {
|
|
component: 'Trans',
|
|
i18nKey: 'i18nKey',
|
|
defaultsKey: 'defaults',
|
|
extensions: ['.js', '.jsx'],
|
|
fallbackKey: false
|
|
},
|
|
resource: {
|
|
savePath: 'frontend/extracted-translations.json',
|
|
jsonIndent: 2,
|
|
lineEnding: '\n'
|
|
}
|
|
}
|
|
}
|