forked from openshift/lightspeed-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi18next-parser.config.js
More file actions
32 lines (27 loc) · 855 Bytes
/
i18next-parser.config.js
File metadata and controls
32 lines (27 loc) · 855 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
// eslint-disable-next-line @typescript-eslint/no-require-imports, no-undef
const { CustomJSONLexer } = require('./i18n-scripts/lexers');
// eslint-disable-next-line no-undef
module.exports = {
sort: true,
createOldCatalogs: false,
keySeparator: false,
locales: ['en'],
namespaceSeparator: '~',
reactNamespace: false,
defaultNamespace: 'plugin__lightspeed-console-plugin',
useKeysAsDefaultValue: true,
// See below for more details
lexers: {
hbs: ['HandlebarsLexer'],
handlebars: ['HandlebarsLexer'],
htm: ['HTMLLexer'],
html: ['HTMLLexer'],
mjs: ['JavascriptLexer'],
js: ['JavascriptLexer'], // If you're writing jsx inside .js files, change this to JsxLexer
ts: ['JavascriptLexer'],
jsx: ['JsxLexer'],
tsx: ['JsxLexer'],
json: [CustomJSONLexer],
default: ['JavascriptLexer'],
},
};