ios_polyglot_cli 2.3.0 → 2.4.0

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: 1b23642507cc002c374b2257e6f1a1c95f0ab86d2eec433e7fc9a62b3cd8f20d
4
- data.tar.gz: 7f7e81a449094b690accb5b651f44ba3a7e7f3ab776011907c9a771f868fa44d
3
+ metadata.gz: 8a4772a7586a26e165ab7b05bb5adc917e597f80d0aadd1681c447eb18294e80
4
+ data.tar.gz: 8a441b6e7f109e310aa33caf67ec22751a39da6eb46766f83a002e9f801d9802
5
5
  SHA512:
6
- metadata.gz: 6adf6c7c087428cb866b2c7c008566a1fa828172608076bb3184eed11f03ecbdefbcbb52bd97986fca690bf1b523513eaebc7f1b8c7c42ee3db5390089ae53f7
7
- data.tar.gz: f94d009ee87fa0849584dc3c200488c5006760ad8846bf8114c303071f77ec2299ed8d7edb4fff1ba546f096a7d65bfc96d3d4ba24e3c04dc3548a64f4c33307
6
+ metadata.gz: 9b776a929067b05d066076163a060bab2ff210db020d9a75c3d2357e217b817247a4b5fc1a44ae9abd78fbb746879659b7d47f3126c557d9b86f1e77821a5c5a
7
+ data.tar.gz: 0173e073f01dbfcf7a9318ecf9a9cbebabcfea04be5433c19a2c398d0d092f0fdbfc268d6efa5e910d5f5b4f680059bd8505e077558a6f9fab6c2e1d4002e3a3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ios_polyglot_cli (2.3.0)
4
+ ios_polyglot_cli (2.4.0)
5
5
  activesupport
6
6
  commander
7
7
  json_api_client
@@ -23,7 +23,7 @@ GEM
23
23
  coderay (1.1.3)
24
24
  commander (4.6.0)
25
25
  highline (~> 2.0.0)
26
- concurrent-ruby (1.1.10)
26
+ concurrent-ruby (1.2.2)
27
27
  faraday (1.10.2)
28
28
  faraday-em_http (~> 1.0)
29
29
  faraday-em_synchrony (~> 1.0)
@@ -10,20 +10,22 @@ module PolyglotIos
10
10
 
11
11
  def call
12
12
  prompt.say("Fetching translations...")
13
- generate_translations(project_configs, programming_language)
13
+ generate_translations(project_configs, programming_language, skip_writing_language_struct)
14
14
  success("Translations successfully generated!")
15
15
  end
16
16
 
17
17
  private
18
18
 
19
- def generate_translations(projects, programming_language)
19
+ def generate_translations(projects, programming_language, skip_writing_language_struct)
20
20
  projects.each do |project|
21
21
  project_id = project[:id]
22
22
  languages = pull_languages(project_id)
23
23
  translation_keys = pull_translation_keys(project_id)
24
24
 
25
25
  write_translations(translation_keys, languages, project[:path], project[:useOldNaming])
26
- write_languages(languages, project[:sourceFilesPath], programming_language)
26
+ if !skip_writing_language_struct
27
+ write_languages(languages, project[:sourceFilesPath], programming_language)
28
+ end
27
29
  write_translation_sources(translation_keys, project[:sourceFilesPath], programming_language)
28
30
  end
29
31
  end
@@ -28,6 +28,10 @@ module PolyglotIos
28
28
  @programming_language ||= config[:language]
29
29
  end
30
30
 
31
+ def skip_writing_language_struct
32
+ @skip_writing_language_struct ||= config[:skip_writing_language_struct]
33
+ end
34
+
31
35
  def use_old_naming
32
36
  @useOldNaming ||= config[:useOldNaming]
33
37
  end
@@ -1,3 +1,3 @@
1
1
  module PolyglotIos
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_polyglot_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Gulan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-02 00:00:00.000000000 Z
11
+ date: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler