ios_polyglot_cli 2.7.0 → 2.7.1

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: 4be5207295850180cb1f52a18f3506470d04835c814f149785521ddc00e1b6e0
4
- data.tar.gz: 5b4b4b0747330f635752b940098d914929185e5980c3b38e0b785b7bfa819596
3
+ metadata.gz: eae3ed907e8dbb5026c1e4dc79435354b87c9fe382ed58f83830ccffea3db225
4
+ data.tar.gz: 1a5898915ea42369d060abb61bcd9d54dce94fcc7c92069e19d833eada42aeec
5
5
  SHA512:
6
- metadata.gz: 0c103fce180c3bc47dd740b54e09eff019ee3a1fe5323bb89b8231e5f4c02350dc50a7f631f0b8bcee0d1e5c6e420a975f8988b03abcb04957a02b5e18ed10a9
7
- data.tar.gz: 9cc61da2a0e77ebaaede23ed13599673ce96c59385de3cf80f5644ac8de6f87efae589208f51cc68b5ac46759333fd34fec5641c7496877501afb7bc7adf8a10
6
+ metadata.gz: cbe30cf18f8196604f00df3138da1da5d7f5ade63773fde56dc468d875ef3ad6e9edecedabee305876840fe037dcadc8cfce645a6f6c5809b32b37437c6a04e7
7
+ data.tar.gz: 229ce9fadd50ead8e4ffaec689696ec56af4c9f9764f8da4e4776c429a8875e8ff62fe6b03a37afee2bad2c74defd77b8059cc574ec16a4b7035922aed28a253
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ios_polyglot_cli (2.7.0)
4
+ ios_polyglot_cli (2.7.1)
5
5
  activesupport
6
6
  commander
7
7
  json_api_client
@@ -92,6 +92,7 @@ GEM
92
92
  zlib (3.2.0)
93
93
 
94
94
  PLATFORMS
95
+ arm64-darwin-22
95
96
  arm64-darwin-24
96
97
 
97
98
  DEPENDENCIES
@@ -21,11 +21,22 @@ module PolyglotIos
21
21
 
22
22
  def serializedDefaultTranslation()
23
23
  if !translation.nil?
24
- return "/// Value: #{translation}"
24
+ return format_translation_as_comment(translation)
25
25
  end
26
26
  return ""
27
27
  end
28
28
 
29
+ def format_translation_as_comment(translation)
30
+ lines = translation.lines
31
+ lines.each_with_index.map do |line, index|
32
+ if index == 0
33
+ "/// Value: #{line.chomp}"
34
+ else
35
+ "\t/// #{line.chomp}"
36
+ end
37
+ end.join("\n")
38
+ end
39
+
29
40
  end
30
41
  end
31
42
  end
@@ -1,3 +1,3 @@
1
1
  module PolyglotIos
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_polyglot_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Gulan