@apiverve/translator 1.1.4 → 1.1.6
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 +13 -13
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -47,10 +47,10 @@ Using the API client, you can perform requests to the API.
|
|
|
47
47
|
###### Define Query
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
var query = {
|
|
51
|
-
"text": "I'm so excited that tomorrow is going to be sunny! Can't wait!",
|
|
52
|
-
"source": "en",
|
|
53
|
-
"target": "es"
|
|
50
|
+
var query = {
|
|
51
|
+
"text": "I'm so excited that tomorrow is going to be sunny! Can't wait!",
|
|
52
|
+
"source": "en",
|
|
53
|
+
"target": "es"
|
|
54
54
|
};
|
|
55
55
|
```
|
|
56
56
|
|
|
@@ -69,15 +69,15 @@ api.execute(query, function (error, data) {
|
|
|
69
69
|
###### Example Response
|
|
70
70
|
|
|
71
71
|
```
|
|
72
|
-
{
|
|
73
|
-
"status": "ok",
|
|
74
|
-
"error": null,
|
|
75
|
-
"data": {
|
|
76
|
-
"sourceLang": "en",
|
|
77
|
-
"targetLang": "es",
|
|
78
|
-
"translatedText": "¡Estoy tan emocionada
|
|
79
|
-
},
|
|
80
|
-
"code": 200
|
|
72
|
+
{
|
|
73
|
+
"status": "ok",
|
|
74
|
+
"error": null,
|
|
75
|
+
"data": {
|
|
76
|
+
"sourceLang": "en",
|
|
77
|
+
"targetLang": "es",
|
|
78
|
+
"translatedText": "¡Estoy tan emocionada porque mañana hará sol! ¡No puedo esperar!"
|
|
79
|
+
},
|
|
80
|
+
"code": 200
|
|
81
81
|
}
|
|
82
82
|
```
|
|
83
83
|
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apiverve/translator",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Translator is a simple tool for translating text. It returns the translated text.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "mocha"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/apiverve/translator-API.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"translator","translation","translate","text translation","language translation"
|
|
15
|
-
],
|
|
16
|
-
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/apiverve/translator-API/issues"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://apiverve.com/marketplace/api/translator",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"mocha": "^
|
|
24
|
-
"chai": "^5.1.
|
|
25
|
-
"dotenv": "^16.4.
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"node-fetch": "^3.3.2",
|
|
29
|
-
"promise": "^8.3.0",
|
|
30
|
-
"axios": "1.7.
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@apiverve/translator",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "Translator is a simple tool for translating text. It returns the translated text.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/apiverve/translator-API.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"translator","translation","translate","text translation","language translation"
|
|
15
|
+
],
|
|
16
|
+
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/apiverve/translator-API/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://apiverve.com/marketplace/api/translator?utm_source=npm",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"mocha": "^11.0.1",
|
|
24
|
+
"chai": "^5.1.2",
|
|
25
|
+
"dotenv": "^16.4.7"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"node-fetch": "^3.3.2",
|
|
29
|
+
"promise": "^8.3.0",
|
|
30
|
+
"axios": "1.7.9"
|
|
31
|
+
}
|
|
32
32
|
}
|