fastlane-plugin-simple_loco 2.1.0 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60d1b677fef0fd77bf745fa50094849ee1b4dc84b5401abfff80a6e09e8db3cc
|
4
|
+
data.tar.gz: b5e03b106b249603b7bd2ee5b4c64b92e90d3034908e1e3ac05c9bb807c6a48f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db3caa5a2e78fe8de1fdae3f272f39e3496378293632819267896ad937451ca922ebe3e7c9f4cc8bfe7c84dcf927c0982cb3c00e3f806d03581deb69f34ff30
|
7
|
+
data.tar.gz: ce254f9cdafc0f2fdcccb2505235cde9889dc1d3d8bb68f89bfffd1f6dada83bf61a6fda019e715bfef5f148ea695c6541fe74d6f34726cfaf4e45113ad460c7
|
data/README.md
CHANGED
@@ -38,11 +38,11 @@ The config file specifies the following properties:
|
|
38
38
|
- locales: List of locales to fetch
|
39
39
|
- directory: Directory to move translation files to
|
40
40
|
- platform: Platform for the translations: choice between:
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
45
|
-
-
|
41
|
+
- android
|
42
|
+
- ios
|
43
|
+
- xamarin
|
44
|
+
- flutter
|
45
|
+
- custom
|
46
46
|
- key: Key of the Loco project
|
47
47
|
- Optional parameters:
|
48
48
|
- format
|
@@ -72,7 +72,8 @@ module Fastlane
|
|
72
72
|
if platform == PLATFORM_ANDROID
|
73
73
|
@adapter = AndroidAdapter.new
|
74
74
|
elsif platform == PLATFORM_IOS
|
75
|
-
@adapter = CocoaAdapter.new
|
75
|
+
@adapter = CocoaAdapter.new(
|
76
|
+
format: format)
|
76
77
|
elsif platform == PLATFORM_FLUTTER
|
77
78
|
@adapter = FlutterAdapter.new
|
78
79
|
elsif platform == PLATFORM_XAMARIN
|
@@ -227,13 +228,9 @@ module Fastlane
|
|
227
228
|
raise "Unsupported config file format #{extension}, only JSON and YAML files are supported."
|
228
229
|
end
|
229
230
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
end
|
234
|
-
|
235
|
-
yaml = YAML.safe_load(File.read(path))
|
236
|
-
return Config.new(yaml.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; })
|
231
|
+
data = YAML.safe_load(File.read(path))
|
232
|
+
config = data.each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; }
|
233
|
+
return Config.new(**config)
|
237
234
|
end
|
238
235
|
end
|
239
236
|
|
@@ -293,8 +290,18 @@ module Fastlane
|
|
293
290
|
end
|
294
291
|
|
295
292
|
class CocoaAdapter < BaseAdapter
|
293
|
+
def initialize(format:)
|
294
|
+
@format = format
|
295
|
+
end
|
296
|
+
|
297
|
+
attr_reader :format
|
298
|
+
|
296
299
|
def allowed_extensions
|
297
|
-
|
300
|
+
if @format == 'plist'
|
301
|
+
return ['.strings']
|
302
|
+
else
|
303
|
+
return ['.strings', '.stringsdict']
|
304
|
+
end
|
298
305
|
end
|
299
306
|
|
300
307
|
def directory(locale, is_default)
|
@@ -302,7 +309,11 @@ module Fastlane
|
|
302
309
|
end
|
303
310
|
|
304
311
|
def default_file_name
|
305
|
-
|
312
|
+
if @format == 'plist'
|
313
|
+
return 'InfoPlist'
|
314
|
+
else
|
315
|
+
return 'Localizable'
|
316
|
+
end
|
306
317
|
end
|
307
318
|
end
|
308
319
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-simple_loco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yves Delcoigne
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.157.1
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: yves_delcoigne@hotmail.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
@@ -152,7 +152,7 @@ homepage: https://github.com/DelcoigneYves/fastlane-plugin-simple_loco
|
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata: {}
|
155
|
-
post_install_message:
|
155
|
+
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.4.10
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: A simple implementation for exporting translations from Loco.
|
174
174
|
test_files: []
|