jekyll-chatgpt-translate 0.0.44 → 0.0.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac33cf289fbc970376efe2e1b6af0693db8a2c8875d059dec1d228c89baee96b
4
- data.tar.gz: 3baa2cb4e88e93f3fe26cfb253b7ca939269d351930ba56f10c10aa6f5766c67
3
+ metadata.gz: bc8d628b2fef8f46e6f6d9311ecc8bc109964bd0649e5dc2e9e2d527dc77efac
4
+ data.tar.gz: a8fc47ee9c995713130929f6a9e6cea199099d4162eef9e50320b80123d107db
5
5
  SHA512:
6
- metadata.gz: 629df2b5bbdaf7f51a562d5e941c93e9a18d07dbd868694010076c8657896e7827123b71478d60d903b645dc722e81bd274478de80b68b87bbfe78316cea69ea
7
- data.tar.gz: a8099c472aeb3e73f71b94a8221f2bbd549571f1d9414e8b9d787b66823f3d1db9b5411a1a7047376684925c457110e62b1578af463857c3b95d7ab02271ec2d
6
+ metadata.gz: 6d963ac05dd3853b70a27fcde2f8d931d0208c099603a7ad7c7bb6a9259ab3949d5c7c403fbac06d331ec1777c56814d9fdca07c2d3d9ae7150a840bcce73c53
7
+ data.tar.gz: b6c6ff008f21028ca889e7a0646759c188d2962661a7570c7bbbf88d0eefc999be344ada6c3c5d737308a5ea1468f72edddd4d0a3a915b4ad793716fd31c9abb
data/README.md CHANGED
@@ -78,7 +78,7 @@ and placed into the `_site` directory.
78
78
  Full list of options available to specify in `_config.yml`:
79
79
 
80
80
  * `api_key_file` (optional) — the file with OpenAI API key.
81
- If this option is not specified,
81
+ If this option is not specified,
82
82
  it is expected to have the key in the `OPENAI_API_KEY` environment variable.
83
83
 
84
84
  * `api_key` (optional) — the OpenAI API key itself. This is a very bad idea to
@@ -120,6 +120,10 @@ If this option is not specified,
120
120
  * `language` (mandatory) —
121
121
  [ISO-639-1][iso-639] code of the target language
122
122
 
123
+ * `source` (optional) —
124
+ [ISO-639-1][iso-639] code of the source language (overwrites the
125
+ value of the `source` defined above)
126
+
123
127
  * `permalink` (mandatory) — template to use for newly generated pages
124
128
 
125
129
  * `layout` (optional) — the name of the file in the `_layouts` directory
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
29
29
  s.required_ruby_version = '>= 3.0'
30
30
  s.name = 'jekyll-chatgpt-translate'
31
- s.version = '0.0.44'
31
+ s.version = '0.0.45'
32
32
  s.license = 'MIT'
33
33
  s.summary = 'Translate Jekyll Pages Through ChatGPT'
34
34
  s.description = [
@@ -117,7 +117,7 @@ class GptTranslate::Generator < Jekyll::Generator
117
117
  gpt = GptTranslate::ChatGPT.new(
118
118
  key,
119
119
  model,
120
- config['source'] || 'en',
120
+ target['source'] || config['source'] || 'en',
121
121
  lang
122
122
  )
123
123
  foreign = gpt.translate(
@@ -23,5 +23,5 @@
23
23
  # SOFTWARE.
24
24
 
25
25
  module GptTranslate
26
- VERSION = '0.0.44'
26
+ VERSION = '0.0.45'
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-chatgpt-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko