-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi18next-scanner.config.js
More file actions
37 lines (37 loc) · 879 Bytes
/
i18next-scanner.config.js
File metadata and controls
37 lines (37 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export default {
input: [
'src/**/*.{ts,tsx}',
'!src/**/*.spec.{ts,tsx}',
'!src/i18n/**',
'!**/node_modules/**',
],
output: './public/locales/',
options: {
debug: true,
removeUnusedKeys: true,
sort: true,
func: {
list: ['t', 'i18next.t', 'i18n.t'],
extensions: ['.ts', '.tsx']
},
trans: {
component: 'Trans',
extensions: ['.tsx']
},
lngs: ['en', 'hi', 'bn', 'te', 'ta', 'mr', 'gu', 'kn', 'ml', 'pa'],
ns: ['common', 'mental-health', 'exercises'],
defaultLng: 'en',
defaultNs: 'common',
defaultValue: '',
resource: {
loadPath: 'public/locales/{{lng}}/{{ns}}.json',
savePath: 'public/locales/{{lng}}/{{ns}}.json',
jsonIndent: 2,
lineEnding: '\n'
},
nsSeparator: ':',
keySeparator: '.',
pluralSeparator: '_',
contextSeparator: '_',
},
}