fastlane-plugin-google_sheet_localize 0.1.81 → 0.1.82
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: 4dc6285a771c92ad1e0b712d68c5357859bed9fabc9dbc590c1da1c06dca2b86
|
4
|
+
data.tar.gz: 29c2089a93ea773cf3aad5296cf958d4899f5727976bb7a58cc9ea4b2fa1d5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 926e29ec71ce033efe1ec6e4646ad9b7480bc4317cf0214c8bf34bd037002d1aeeedcfafb38798c76be26b330962a28e0056ad3905eecd6e41ddc264b90108f3
|
7
|
+
data.tar.gz: a04a7a94340908e804790eb103b87500ea60bc02c29f67214110318999da4443e6576f2118276c2e223c7bd84236511901febc6bcaf0d9fa56274a2057671d59
|
@@ -240,13 +240,15 @@ module Fastlane
|
|
240
240
|
|
241
241
|
text = text.gsub(/\\?'/, "\\\\'")
|
242
242
|
|
243
|
-
if text.include?
|
243
|
+
if text.scan(/|/).length >= 2 && text.include?("\n")
|
244
|
+
|
245
|
+
text = text.gsub("\n", "|")
|
244
246
|
|
245
247
|
line = line + "\t<plurals name=\"#{identifier}\">\n"
|
246
248
|
|
247
249
|
plural = ""
|
248
250
|
|
249
|
-
text.
|
251
|
+
text.split("|").each_with_index { |word, wordIndex|
|
250
252
|
if wordIndex % 2 == 0
|
251
253
|
plural = "\t\t<item quantity=\"#{word}\">"
|
252
254
|
else
|