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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae3ed907e8dbb5026c1e4dc79435354b87c9fe382ed58f83830ccffea3db225
|
4
|
+
data.tar.gz: 1a5898915ea42369d060abb61bcd9d54dce94fcc7c92069e19d833eada42aeec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe30cf18f8196604f00df3138da1da5d7f5ade63773fde56dc468d875ef3ad6e9edecedabee305876840fe037dcadc8cfce645a6f6c5809b32b37437c6a04e7
|
7
|
+
data.tar.gz: 229ce9fadd50ead8e4ffaec689696ec56af4c9f9764f8da4e4776c429a8875e8ff62fe6b03a37afee2bad2c74defd77b8059cc574ec16a4b7035922aed28a253
|
data/Gemfile.lock
CHANGED
@@ -21,11 +21,22 @@ module PolyglotIos
|
|
21
21
|
|
22
22
|
def serializedDefaultTranslation()
|
23
23
|
if !translation.nil?
|
24
|
-
return
|
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
|