-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathi18next-parser.config.js
25 lines (20 loc) · 1.1 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
module.exports = {
createOldCatalogs: true, // save previous translation catalogs to the \_old folder
lexers: {
js: ["JsxLexer"], // we're writing jsx inside .js files
default: ["JavascriptLexer"],
},
locales: ["es", "es", "fr", "hi", "mr", "gt"],
// An array of the locales in your applications
namespaceSeparator: ".",
// Namespace separator used in your translation keys
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
output: "src/translations/$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()
input: ["src/*.js"],
// An array of globs that describe where to look for source files
// relative to the location of the configuration file
// Globs syntax: https://github.com/isaacs/node-glob#glob-primer
};