-
Notifications
You must be signed in to change notification settings - Fork 1
/
i18next-parser.config.js
35 lines (28 loc) · 1.06 KB
/
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
// file: ./i18next-parser.config.js
module.exports = {
// 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"],
default: ["JavascriptLexer"],
},
locales: ["is", "en"],
// An array of the locales in your applications
output: "public/locales/$LOCALE.json",
// output: 'locales/$LOCALE/$NAMESPACE.json',
// Supports $LOCALE and $NAMESPACE injection
// Supports JSON (.json) and YAML (.yml) file formats
// Where to write the locale files relative to process.cwd()
useKeysAsDefaultValue: true,
// Whether to use the keys as the default value; ex. "Hello": "Hello", "World": "World"
// This option takes precedence over the `defaultValue` and `skipDefaultValues` options
verbose: true,
// Display info about the parsing including some stats
};