fastlane-plugin-simple_loco 2.2.0 → 2.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60d1b677fef0fd77bf745fa50094849ee1b4dc84b5401abfff80a6e09e8db3cc
4
- data.tar.gz: b5e03b106b249603b7bd2ee5b4c64b92e90d3034908e1e3ac05c9bb807c6a48f
3
+ metadata.gz: f80cc692304dcb89fd8adb3b1cc4a8605697d73cc265d1adfdbb03061c63c250
4
+ data.tar.gz: c2423f6a00b7999c4e5a321ebd6b8d492c250e8f3ebea347cc8143c67aff0fcf
5
5
  SHA512:
6
- metadata.gz: 8db3caa5a2e78fe8de1fdae3f272f39e3496378293632819267896ad937451ca922ebe3e7c9f4cc8bfe7c84dcf927c0982cb3c00e3f806d03581deb69f34ff30
7
- data.tar.gz: ce254f9cdafc0f2fdcccb2505235cde9889dc1d3d8bb68f89bfffd1f6dada83bf61a6fda019e715bfef5f148ea695c6541fe74d6f34726cfaf4e45113ad460c7
6
+ metadata.gz: 8bb21251d7499fb49b6eb9d211cca1d332e7507d18e0906fc52beb9034a7fdc196241ce16504ba148c825511758ac16f8bd97c14d9e1688823e7ce51d25360d3
7
+ data.tar.gz: 741c52245e96729e7e47c9e25674abdad0d90b4139553c24f7efc783134a847f8a54160b91aaf3e165b815136c45ac7e31a4ddd513ab57f87616ce84352c66a4
@@ -29,6 +29,7 @@ module Fastlane
29
29
  breaks: "",
30
30
  no_comments: "",
31
31
  no_folding: "",
32
+ mapping: nil,
32
33
  custom_extension: "",
33
34
  custom_file_name: "")
34
35
 
@@ -68,6 +69,7 @@ module Fastlane
68
69
  @breaks = breaks
69
70
  @no_comments = no_comments
70
71
  @no_folding = no_folding
72
+ @mapping = mapping
71
73
 
72
74
  if platform == PLATFORM_ANDROID
73
75
  @adapter = AndroidAdapter.new
@@ -104,6 +106,7 @@ module Fastlane
104
106
  attr_reader :breaks
105
107
  attr_reader :no_comments
106
108
  attr_reader :no_folding
109
+ attr_reader :mapping
107
110
 
108
111
  def export_locales
109
112
 
@@ -215,8 +218,10 @@ module Fastlane
215
218
  end
216
219
 
217
220
  def locale_directory(locale, is_default)
221
+ mapped_locale = @mapping && @mapping[locale] || locale
222
+
218
223
  return File.join(@directory,
219
- @adapter.directory(locale, is_default))
224
+ @adapter.directory(mapped_locale, is_default))
220
225
  end
221
226
 
222
227
  # Static method used to read a config file
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SimpleLoco
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
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.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Delcoigne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-10 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry