auto-translate-json-library 2.1.0 → 2.2.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/README.MD +30 -8
- package/build/package.json +12 -12
- package/package.json +12 -12
package/README.MD
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Auto Translate JSON Library
|
|
2
2
|
|
|
3
|
+
[](https://github.com/sponsors/topce)
|
|
4
|
+
|
|
3
5
|
This project is used in, (and refactored from) excellent VS Code extension
|
|
4
6
|
Auto Translate JSON
|
|
5
7
|
<https://marketplace.visualstudio.com/items?itemName=JeffJorczak.auto-translate-json>
|
|
@@ -13,15 +15,19 @@ for example [ollama](https://ollama.com/)
|
|
|
13
15
|
because it is compatible with OpenAI https://ollama.com/blog/openai-compatibility
|
|
14
16
|
or [Hugging Face](https://huggingface.co/) (cloud API or fully local on-device inference)
|
|
15
17
|
|
|
16
|
-
##
|
|
18
|
+
## 💖 Sponsor this Project
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
20
|
+
If you find this library valuable and would like to support its ongoing development, please consider sponsoring the project on GitHub.
|
|
21
|
+
|
|
22
|
+
**Sponsor via GitHub Sponsors:** [https://github.com/sponsors/topce](https://github.com/sponsors/topce)
|
|
23
|
+
|
|
24
|
+
Your sponsorship helps with:
|
|
25
|
+
- Ongoing maintenance and bug fixes
|
|
26
|
+
- Adding new features and translation services
|
|
27
|
+
- Supporting open-source development
|
|
28
|
+
- Keeping the library up-to-date with the latest translation APIs
|
|
29
|
+
|
|
30
|
+
Even a small monthly contribution makes a big difference in ensuring this project remains actively maintained and continues to improve.
|
|
25
31
|
|
|
26
32
|
## ⚡ Version 2.1.0 - Performance & CLI Improvements
|
|
27
33
|
|
|
@@ -50,6 +56,16 @@ This release focuses on performance optimization and enhanced developer experien
|
|
|
50
56
|
- **After**: Only needed SDK loads on demand
|
|
51
57
|
- **Result**: 70% faster startup, 80% lower memory for most use cases
|
|
52
58
|
|
|
59
|
+
## 🚀 Version 2.0.0 - Major Release
|
|
60
|
+
|
|
61
|
+
This major release brings comprehensive improvements including:
|
|
62
|
+
- **ES Modules support** for modern JavaScript compatibility
|
|
63
|
+
- **Enhanced validation system** with detailed error reporting and recovery
|
|
64
|
+
- **Expanded format support** with robust handling for all major translation formats
|
|
65
|
+
- **Complete demo system** with interactive examples
|
|
66
|
+
- **Comprehensive test suite** with 100% format handler coverage
|
|
67
|
+
- **Security updates** for all dependencies
|
|
68
|
+
|
|
53
69
|
## Use as Library
|
|
54
70
|
|
|
55
71
|
```shell
|
|
@@ -543,6 +559,12 @@ This will run translations on sample files in multiple formats (JSON, XML, YAML,
|
|
|
543
559
|
|
|
544
560
|
## Contribute
|
|
545
561
|
|
|
562
|
+
There are several ways to contribute to this project:
|
|
563
|
+
|
|
564
|
+
### 💖 Financial Support
|
|
565
|
+
If you find this library valuable in your projects, consider supporting its development through [GitHub Sponsors](https://github.com/sponsors/topce). Your sponsorship helps ensure ongoing maintenance, bug fixes, and new features.
|
|
566
|
+
|
|
567
|
+
### 🛠️ Code Contributions
|
|
546
568
|
Clone repo and use the following commands:
|
|
547
569
|
|
|
548
570
|
1. Install ollama and run `ollama run llama2`
|
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auto-translate-json-library",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Automatically translates JSON language files to other languages using Google Translate, AWS, Azure, DeepL, OpenAI, Hugging Face (cloud & local) or local OpenAI compatible server",
|
|
6
6
|
"main": "./build/src/index.js",
|
|
@@ -128,36 +128,36 @@
|
|
|
128
128
|
],
|
|
129
129
|
"license": "MIT",
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@biomejs/biome": "2.4.
|
|
131
|
+
"@biomejs/biome": "2.4.12",
|
|
132
132
|
"@topce/native-preview": "7.0.0-dev.20260215",
|
|
133
133
|
"@types/gettext-parser": "9.0.0",
|
|
134
134
|
"@types/jest": "30.0.0",
|
|
135
135
|
"@types/minimist": "1.2.5",
|
|
136
|
-
"@types/node": "25.
|
|
136
|
+
"@types/node": "25.6.0",
|
|
137
137
|
"@types/properties-parser": "0.3.3",
|
|
138
138
|
"@types/yargs": "17.0.35",
|
|
139
139
|
"jest": "30.3.0",
|
|
140
|
-
"ts-jest": "29.4.
|
|
140
|
+
"ts-jest": "29.4.9",
|
|
141
141
|
"ts-node": "10.9.2",
|
|
142
|
-
"typescript": "
|
|
142
|
+
"typescript": "6.0.3"
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
|
-
"@aws-sdk/client-translate": "3.
|
|
145
|
+
"@aws-sdk/client-translate": "3.1032.0",
|
|
146
146
|
"@google-cloud/translate": "9.3.0",
|
|
147
147
|
"@huggingface/inference": "^4.13.15",
|
|
148
|
-
"@huggingface/transformers": "^
|
|
148
|
+
"@huggingface/transformers": "^4.1.0",
|
|
149
149
|
"@types/js-yaml": "4.0.9",
|
|
150
|
-
"axios": "1.
|
|
150
|
+
"axios": "1.15.0",
|
|
151
151
|
"csv-parser": "3.2.0",
|
|
152
152
|
"csv-writer": "1.6.0",
|
|
153
|
-
"deepl-node": "1.
|
|
154
|
-
"dotenv": "17.
|
|
155
|
-
"fast-xml-parser": "5.
|
|
153
|
+
"deepl-node": "1.26.0",
|
|
154
|
+
"dotenv": "17.4.2",
|
|
155
|
+
"fast-xml-parser": "5.7.1",
|
|
156
156
|
"form-data": "4.0.5",
|
|
157
157
|
"gettext-parser": "9.0.2",
|
|
158
158
|
"js-yaml": "4.1.1",
|
|
159
159
|
"minimist": "1.2.8",
|
|
160
|
-
"openai": "6.
|
|
160
|
+
"openai": "6.34.0",
|
|
161
161
|
"picocolors": "1.1.1",
|
|
162
162
|
"properties-parser": "0.6.0",
|
|
163
163
|
"sharp": "^0.34.5",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auto-translate-json-library",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Automatically translates JSON language files to other languages using Google Translate, AWS, Azure, DeepL, OpenAI, Hugging Face (cloud & local) or local OpenAI compatible server",
|
|
6
6
|
"main": "./build/src/index.js",
|
|
@@ -128,36 +128,36 @@
|
|
|
128
128
|
],
|
|
129
129
|
"license": "MIT",
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@biomejs/biome": "2.4.
|
|
131
|
+
"@biomejs/biome": "2.4.12",
|
|
132
132
|
"@topce/native-preview": "7.0.0-dev.20260215",
|
|
133
133
|
"@types/gettext-parser": "9.0.0",
|
|
134
134
|
"@types/jest": "30.0.0",
|
|
135
135
|
"@types/minimist": "1.2.5",
|
|
136
|
-
"@types/node": "25.
|
|
136
|
+
"@types/node": "25.6.0",
|
|
137
137
|
"@types/properties-parser": "0.3.3",
|
|
138
138
|
"@types/yargs": "17.0.35",
|
|
139
139
|
"jest": "30.3.0",
|
|
140
|
-
"ts-jest": "29.4.
|
|
140
|
+
"ts-jest": "29.4.9",
|
|
141
141
|
"ts-node": "10.9.2",
|
|
142
|
-
"typescript": "
|
|
142
|
+
"typescript": "6.0.3"
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
|
-
"@aws-sdk/client-translate": "3.
|
|
145
|
+
"@aws-sdk/client-translate": "3.1032.0",
|
|
146
146
|
"@google-cloud/translate": "9.3.0",
|
|
147
147
|
"@huggingface/inference": "^4.13.15",
|
|
148
|
-
"@huggingface/transformers": "^
|
|
148
|
+
"@huggingface/transformers": "^4.1.0",
|
|
149
149
|
"@types/js-yaml": "4.0.9",
|
|
150
|
-
"axios": "1.
|
|
150
|
+
"axios": "1.15.0",
|
|
151
151
|
"csv-parser": "3.2.0",
|
|
152
152
|
"csv-writer": "1.6.0",
|
|
153
|
-
"deepl-node": "1.
|
|
154
|
-
"dotenv": "17.
|
|
155
|
-
"fast-xml-parser": "5.
|
|
153
|
+
"deepl-node": "1.26.0",
|
|
154
|
+
"dotenv": "17.4.2",
|
|
155
|
+
"fast-xml-parser": "5.7.1",
|
|
156
156
|
"form-data": "4.0.5",
|
|
157
157
|
"gettext-parser": "9.0.2",
|
|
158
158
|
"js-yaml": "4.1.1",
|
|
159
159
|
"minimist": "1.2.8",
|
|
160
|
-
"openai": "6.
|
|
160
|
+
"openai": "6.34.0",
|
|
161
161
|
"picocolors": "1.1.1",
|
|
162
162
|
"properties-parser": "0.6.0",
|
|
163
163
|
"sharp": "^0.34.5",
|