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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/ios_polyglot_cli/commands/pull.rb +5 -3
- data/lib/ios_polyglot_cli/helpers/general.rb +4 -0
- data/lib/ios_polyglot_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a4772a7586a26e165ab7b05bb5adc917e597f80d0aadd1681c447eb18294e80
|
4
|
+
data.tar.gz: 8a441b6e7f109e310aa33caf67ec22751a39da6eb46766f83a002e9f801d9802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
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
|
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.
|
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:
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|