forked from helixsoftco/vuelix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue-i18n-extract.config.js
29 lines (28 loc) · 1005 Bytes
/
vue-i18n-extract.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
module.exports = {
/*
Required (Glob files pattern)
Do not include the entire src directory because vue-i18n-extract doesn't have a way to exclude directories
*/
vueFiles: './src/{pages,layouts,components}/**/*.vue',
languageFiles: './locales/*.json',
output: false,
/* With this option activated, the new found translations are added to the lang files, otherwise just a report is displayed in the console */
add: true,
/* If this is true, the unused translations will be removed, however, we found that this feature activated doesn't work well when the add feature is also activated, therefore, they haave opposite values */
remove: false,
ci: false,
/*
The separator is set to "_", because we are using the original language as the translations keys,
therefore a code like $t("Hello. World!") would be translated into:
{
"Hello": {
" World!": ""
}
}
// Instead we want:
{
"Hello. World!": ""
}
*/
separator: '_',
}