auto-translate-json-library 1.2.7 → 1.3.0
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 +68 -0
- package/build/src/bin/cli.d.ts +2 -0
- package/{cli.js → build/src/bin/cli.js} +3 -2
- package/package.json +66 -66
- package/bin/cli.js +0 -2
- package/cli.d.ts +0 -1
- /package/{README.md → README.MD} +0 -0
- /package/{aws.d.ts → build/src/aws.d.ts} +0 -0
- /package/{aws.js → build/src/aws.js} +0 -0
- /package/{azure.d.ts → build/src/azure.d.ts} +0 -0
- /package/{azure.js → build/src/azure.js} +0 -0
- /package/{config.d.ts → build/src/config.d.ts} +0 -0
- /package/{config.js → build/src/config.js} +0 -0
- /package/{deepl.d.ts → build/src/deepl.d.ts} +0 -0
- /package/{deepl.js → build/src/deepl.js} +0 -0
- /package/{files.d.ts → build/src/files.d.ts} +0 -0
- /package/{files.js → build/src/files.js} +0 -0
- /package/{folderFiles.d.ts → build/src/folderFiles.d.ts} +0 -0
- /package/{folderFiles.js → build/src/folderFiles.js} +0 -0
- /package/{google.d.ts → build/src/google.d.ts} +0 -0
- /package/{google.js → build/src/google.js} +0 -0
- /package/{index.d.ts → build/src/index.d.ts} +0 -0
- /package/{index.js → build/src/index.js} +0 -0
- /package/{lib.d.ts → build/src/lib.d.ts} +0 -0
- /package/{lib.js → build/src/lib.js} +0 -0
- /package/{openai.d.ts → build/src/openai.d.ts} +0 -0
- /package/{openai.js → build/src/openai.js} +0 -0
- /package/{translate.interface.d.ts → build/src/translate.interface.d.ts} +0 -0
- /package/{translate.interface.js → build/src/translate.interface.js} +0 -0
- /package/{util.d.ts → build/src/util.d.ts} +0 -0
- /package/{util.js → build/src/util.js} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "auto-translate-json-library",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Automatically translates JSON language files to other languages using Google Translate,AWS,Azure,DeepL or OpenAI",
|
|
5
|
+
"main": "./build/src/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"atj": "./build/src/bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"types": "./build/src/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepare": "tsc",
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"lint": "biome check ./src",
|
|
14
|
+
"lint-fix": "biome check ./src --apply",
|
|
15
|
+
"lint-fix-all": "biome check --apply-unsafe ./src",
|
|
16
|
+
"format": "biome format ./src",
|
|
17
|
+
"format-fix": "biome format ./src --write",
|
|
18
|
+
"start": "ts-node src/index.ts",
|
|
19
|
+
"publish": "npm run build "
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"translate",
|
|
23
|
+
"language",
|
|
24
|
+
"json",
|
|
25
|
+
"flutter",
|
|
26
|
+
"angular",
|
|
27
|
+
"ngx-translate",
|
|
28
|
+
"transloco",
|
|
29
|
+
"auto-translate-json",
|
|
30
|
+
"google",
|
|
31
|
+
"Azure",
|
|
32
|
+
"DeepL",
|
|
33
|
+
"OpenAI"
|
|
34
|
+
],
|
|
35
|
+
"author": "codegrue",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/topce/auto-translate-json-library"
|
|
39
|
+
},
|
|
40
|
+
"contributors": [
|
|
41
|
+
"codegrue",
|
|
42
|
+
"gajo357",
|
|
43
|
+
"topce",
|
|
44
|
+
"BenGMiles",
|
|
45
|
+
"stonega"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@biomejs/biome": "1.2.2",
|
|
50
|
+
"@topce/typescript": "5.3.1",
|
|
51
|
+
"@types/minimist": "1.2.3",
|
|
52
|
+
"@types/node": "20.7.2",
|
|
53
|
+
"@types/yargs": "17.0.26",
|
|
54
|
+
"ts-node": "10.9.1"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@aws-sdk/client-translate": "3.421.0",
|
|
58
|
+
"@google-cloud/translate": "8.0.2",
|
|
59
|
+
"axios": "1.5.1",
|
|
60
|
+
"dotenv": "16.3.1",
|
|
61
|
+
"form-data": "4.0.0",
|
|
62
|
+
"minimist": "1.2.8",
|
|
63
|
+
"openai": "4.11.0",
|
|
64
|
+
"picocolors": "1.0.0",
|
|
65
|
+
"uuid": "9.0.1",
|
|
66
|
+
"yargs": "17.7.2"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6,8 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
7
|
const path_1 = __importDefault(require("path"));
|
|
7
8
|
const minimist_1 = __importDefault(require("minimist"));
|
|
8
9
|
const picocolors_1 = __importDefault(require("picocolors"));
|
|
9
|
-
const package_json_1 = require("
|
|
10
|
-
const lib_1 = require("
|
|
10
|
+
const package_json_1 = require("../../package.json");
|
|
11
|
+
const lib_1 = require("../lib");
|
|
11
12
|
require("dotenv").config();
|
|
12
13
|
const arguments_ = process.argv.slice(2);
|
|
13
14
|
const flags = (0, minimist_1.default)(arguments_, {
|
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
2
|
+
"name": "auto-translate-json-library",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Automatically translates JSON language files to other languages using Google Translate,AWS,Azure,DeepL or OpenAI",
|
|
5
|
+
"main": "./build/src/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"atj": "./build/src/bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"types": "./build/src/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepare": "tsc",
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"lint": "biome check ./src",
|
|
14
|
+
"lint-fix": "biome check ./src --apply",
|
|
15
|
+
"lint-fix-all": "biome check --apply-unsafe ./src",
|
|
16
|
+
"format": "biome format ./src",
|
|
17
|
+
"format-fix": "biome format ./src --write",
|
|
18
|
+
"start": "ts-node src/index.ts",
|
|
19
|
+
"publish": "npm run build "
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"translate",
|
|
23
|
+
"language",
|
|
24
|
+
"json",
|
|
25
|
+
"flutter",
|
|
26
|
+
"angular",
|
|
27
|
+
"ngx-translate",
|
|
28
|
+
"transloco",
|
|
29
|
+
"auto-translate-json",
|
|
30
|
+
"google",
|
|
31
|
+
"Azure",
|
|
32
|
+
"DeepL",
|
|
33
|
+
"OpenAI"
|
|
34
|
+
],
|
|
35
|
+
"author": "codegrue",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/topce/auto-translate-json-library"
|
|
39
|
+
},
|
|
40
|
+
"contributors": [
|
|
41
|
+
"codegrue",
|
|
42
|
+
"gajo357",
|
|
43
|
+
"topce",
|
|
44
|
+
"BenGMiles",
|
|
45
|
+
"stonega"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@biomejs/biome": "1.2.2",
|
|
50
|
+
"@topce/typescript": "5.3.1",
|
|
51
|
+
"@types/minimist": "1.2.3",
|
|
52
|
+
"@types/node": "20.7.2",
|
|
53
|
+
"@types/yargs": "17.0.26",
|
|
54
|
+
"ts-node": "10.9.1"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@aws-sdk/client-translate": "3.421.0",
|
|
58
|
+
"@google-cloud/translate": "8.0.2",
|
|
59
|
+
"axios": "1.5.1",
|
|
60
|
+
"dotenv": "16.3.1",
|
|
61
|
+
"form-data": "4.0.0",
|
|
62
|
+
"minimist": "1.2.8",
|
|
63
|
+
"openai": "4.11.0",
|
|
64
|
+
"picocolors": "1.0.0",
|
|
65
|
+
"uuid": "9.0.1",
|
|
66
|
+
"yargs": "17.7.2"
|
|
67
|
+
}
|
|
68
68
|
}
|
package/bin/cli.js
DELETED
package/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
/package/{README.md → README.MD}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|