forked from kubevirt-ui/kubevirt-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18next-parser.config.js
38 lines (33 loc) · 964 Bytes
/
i18next-parser.config.js
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
38
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { CustomJSONLexer } = require('./i18n-scripts/lexers');
module.exports = {
createOldCatalogs: false,
defaultNamespace: 'plugin__kubevirt-plugin',
input: ['src/**/*.{js,jsx,ts,tsx,json}'],
keySeparator: false,
// see below for more details
lexers: {
default: ['JavascriptLexer'],
handlebars: ['HandlebarsLexer'],
hbs: ['HandlebarsLexer'],
htm: ['HTMLLexer'],
html: ['HTMLLexer'],
js: ['JavascriptLexer'], // if you're writing jsx inside .js files, change this to JsxLexer
json: [CustomJSONLexer],
jsx: ['JsxLexer'],
mjs: ['JavascriptLexer'],
ts: ['JavascriptLexer'],
tsx: [
{
lexer: 'JsxLexer',
transKeepBasicHtmlNodesFor: ['br'],
transSupportBasicHtmlNodes: true,
},
],
},
locales: ['en'],
namespaceSeparator: '~',
reactNamespace: false,
sort: true,
useKeysAsDefaultValue: true,
};