forked from mifi/lossless-cut
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi18next.config.base.ts
More file actions
35 lines (32 loc) · 842 Bytes
/
Copy pathi18next.config.base.ts
File metadata and controls
35 lines (32 loc) · 842 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
// eslint-disable-next-line import/no-extraneous-dependencies
import type { defineConfig } from 'i18next-cli';
const configBase: Parameters<typeof defineConfig>[0] = {
extract: {
input: [
'src/renderer/**/*.{ts,tsx}',
'src/main/**/*.ts',
'src/common/**/*.ts',
'src/preload/**/*.ts',
],
output: 'locales/{{language}}/{{namespace}}.json',
defaultNS: 'translation',
functions: [
't',
'*.t',
],
transComponents: [
'Trans',
],
ignoredAttributes: ['data-testid', 'aria-label', 'role'],
// Keep in sync between i18next-parser.config.js and i18nCommon.js:
keySeparator: false,
nsSeparator: false,
},
types: {
input: [
'locales/{{language}}/{{namespace}}.json',
],
output: 'src/types/i18next.d.ts',
},
};
export default configBase;