apiverve_translator 1.2.3 → 1.2.5
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.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/apiverve_translator/client.rb +1 -1
- data/lib/apiverve_translator.rb +1 -1
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa3b3f284374027bbf9af4d5de19d19855ec0d6056c8474ce92e8aa4b8b0820a
|
|
4
|
+
data.tar.gz: 75a8f7ed4667994830c9ebac51f09f801656b3eedb7f3638d772fcce076c9dc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3e94930b615b28b8f00eefefdb653c4f02b7a13e33e7b9a7cc766ff38308ffaa5af25415dcce02f6fbea523d43bc5cb552977ac224a9ba9193e058fc08bdce9
|
|
7
|
+
data.tar.gz: b78857033eef52c4e0bad583ff32a928f6094a02520dd210618d39e38149fcd30517fa4a7e84298f61468e450ef60912ea9239cc0c05c23edac24ad0a21ff925
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Translator API - Ruby Gem
|
|
2
2
|
|
|
3
|
-
Translator is a language translation API that translates
|
|
3
|
+
Translator is a language translation API that translates plain text or HTML into target languages using standard language codes. Submit any string with a target language code to receive the translated text, both language names, and the confirmed or auto-detected source language.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -79,7 +79,12 @@ client = APIVerve::Translator::Client.new(
|
|
|
79
79
|
"data": {
|
|
80
80
|
"sourceLang": "en",
|
|
81
81
|
"targetLang": "es",
|
|
82
|
-
"translatedText": "¡
|
|
82
|
+
"translatedText": "¡Estoy tan emocionada de que mañana vaya a hacer sol! ¡Qué ganas tengo!",
|
|
83
|
+
"sourceLangName": "English",
|
|
84
|
+
"targetLangName": "Spanish",
|
|
85
|
+
"sourceDetected": false,
|
|
86
|
+
"format": "text",
|
|
87
|
+
"characterCount": 62
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
```
|
|
@@ -19,7 +19,7 @@ module APIVerve
|
|
|
19
19
|
DEFAULT_TIMEOUT = 30
|
|
20
20
|
|
|
21
21
|
# Validation rules for parameters
|
|
22
|
-
VALIDATION_RULES = { 'text' => { type: 'string', required: true, max_length: 50000 }, 'target' => { type: 'string', required: true, max_length: 10 }, 'source' => { type: 'string', required: false } }
|
|
22
|
+
VALIDATION_RULES = { 'text' => { type: 'string', required: true, max_length: 50000 }, 'target' => { type: 'string', required: true, max_length: 10 }, 'source' => { type: 'string', required: false }, 'format' => { type: 'string', required: false } }
|
|
23
23
|
|
|
24
24
|
# Format validation patterns
|
|
25
25
|
FORMAT_PATTERNS = {
|
data/lib/apiverve_translator.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_translator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -58,10 +57,10 @@ dependencies:
|
|
|
58
57
|
- - "~>"
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
59
|
version: '2.0'
|
|
61
|
-
description: Translator is a language translation API that translates
|
|
62
|
-
into target languages using standard language codes. Submit any string with
|
|
63
|
-
language code to receive the translated text
|
|
64
|
-
source language.
|
|
60
|
+
description: Translator is a language translation API that translates plain text or
|
|
61
|
+
HTML into target languages using standard language codes. Submit any string with
|
|
62
|
+
a target language code to receive the translated text, both language names, and
|
|
63
|
+
the confirmed or auto-detected source language.
|
|
65
64
|
email:
|
|
66
65
|
- hello@apiverve.com
|
|
67
66
|
executables: []
|
|
@@ -80,7 +79,6 @@ metadata:
|
|
|
80
79
|
source_code_uri: https://github.com/apiverve/translator-API/tree/main/ruby
|
|
81
80
|
changelog_uri: https://apiverve.com/changelog
|
|
82
81
|
documentation_uri: https://docs.apiverve.com/ref/translator
|
|
83
|
-
post_install_message:
|
|
84
82
|
rdoc_options: []
|
|
85
83
|
require_paths:
|
|
86
84
|
- lib
|
|
@@ -95,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
95
93
|
- !ruby/object:Gem::Version
|
|
96
94
|
version: '0'
|
|
97
95
|
requirements: []
|
|
98
|
-
rubygems_version:
|
|
99
|
-
signing_key:
|
|
96
|
+
rubygems_version: 4.0.23
|
|
100
97
|
specification_version: 4
|
|
101
98
|
summary: Translator API - Ruby Client
|
|
102
99
|
test_files: []
|