auto-translate-json-library 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +1 -1
- package/build/src/bin/cli.js +10 -4
- package/package.json +1 -1
package/build/package.json
CHANGED
package/build/src/bin/cli.js
CHANGED
|
@@ -17,12 +17,18 @@ function displayHelp() {
|
|
|
17
17
|
console.log("");
|
|
18
18
|
console.log("Options:");
|
|
19
19
|
console.log(" --help, -h Display this help message");
|
|
20
|
-
console.log(" --mode, -m <mode> Specify the translation mode
|
|
21
|
-
console.log(" --engine, -e <engine> Specify the translation engine
|
|
20
|
+
console.log(" --mode, -m <mode> Specify the translation mode:file or folder");
|
|
21
|
+
console.log(" --engine, -e <engine> Specify the translation engine:aws,azure,google,deepl or openai");
|
|
22
22
|
console.log(" --sourceLocale, -s <locale> Specify the source locale");
|
|
23
23
|
console.log(" --keepTranslations, --no-keepTranslations Keep or retranslate existing translations");
|
|
24
24
|
console.log(" --keepExtraTranslations, --no-keepExtraTranslations Keep or remove extra translations");
|
|
25
25
|
console.log("");
|
|
26
|
+
console.log("Default values");
|
|
27
|
+
console.log(" --mode, -m <mode> file");
|
|
28
|
+
console.log(" --engine, -e <engine> aws");
|
|
29
|
+
console.log(" --sourceLocale, -s <locale> en");
|
|
30
|
+
console.log(" --keepTranslations, --no-keepTranslations --keepTranslations");
|
|
31
|
+
console.log(" --keepExtraTranslations, --no-keepExtraTranslations --no-keepExtraTranslations");
|
|
26
32
|
}
|
|
27
33
|
const arguments_ = process.argv.slice(2);
|
|
28
34
|
if (arguments_.length === 0) {
|
|
@@ -41,10 +47,10 @@ const flags = (0, minimist_1.default)(arguments_, {
|
|
|
41
47
|
string: ["mode", "engine", "sourceLocale"],
|
|
42
48
|
boolean: ["keepTranslations", "keepExtraTranslations", "help"],
|
|
43
49
|
default: {
|
|
44
|
-
engine: "
|
|
50
|
+
engine: "aws",
|
|
45
51
|
sourceLocale: "en",
|
|
46
52
|
keepTranslations: true,
|
|
47
|
-
keepExtraTranslations:
|
|
53
|
+
keepExtraTranslations: false,
|
|
48
54
|
mode: "file",
|
|
49
55
|
},
|
|
50
56
|
});
|
package/package.json
CHANGED