-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.babelrc
More file actions
51 lines (51 loc) · 1.28 KB
/
.babelrc
File metadata and controls
51 lines (51 loc) · 1.28 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"plugins": [
[
"babel-plugin-root-import",
{
"paths": [
{
"rootPathSuffix": "./dist/common/log.js",
"rootPathPrefix": "@log"
},
{
"rootPathSuffix": "./dist/utils/functions/index.js",
"rootPathPrefix": "@utils"
},
{
"rootPathSuffix": "./dist/app",
"rootPathPrefix": "@app"
},
{
"rootPathSuffix": "./dist/classes",
"rootPathPrefix": "@classes"
},
{
"rootPathSuffix": "./dist/common",
"rootPathPrefix": "@common"
},
{
"rootPathSuffix": "./dist/utils/scripts",
"rootPathPrefix": "@scripts"
},
{
"rootPathSuffix": "./dist/common/i18n.js",
"rootPathPrefix": "@i18n"
}
]
}
],
[
"i18next-extract",
{
"locales": ["en-US", "ro"], // add any new locales here, use discord's locale codes
"keyAsDefaultValue": true,
"tFunctionNames": ["t", "getLocalizationMap"],
"outputPath": "locales/{{locale}}/{{ns}}.json",
"nsSeparator": false,
"keySeparator": ".",
"discardOldKeys": true
}
]
]
}