fastlane-plugin-google_sheet_localize 0.1.94 → 0.1.95

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: 57acbef4e8273cd7c6047404c83551df9a1a5c12bb855e7dd498e19ca925b46e
4
- data.tar.gz: 85cbe306ab06afe1a0caed1feff42eaa987a78e6f16907097b6aa0f0440de9f2
3
+ metadata.gz: 001f36a850ddf5a17f24493f71aa2832e46c9579cc2e570daa4f9401d0f03f4b
4
+ data.tar.gz: dd9ff3ebf25845ec19d88968471662e3552ef6b2c522b974b2184cdd7627cddf
5
5
  SHA512:
6
- metadata.gz: 7ec5baa353980a2e5ddcf1b1a78cc6205c6b9e3773994366a921648cc9008567ddd8c0c053b167e41e20e961b0afd43cdd7515bdd972a3be44c54c6a1b94b988
7
- data.tar.gz: f728d0255c78a6b4f0e38d3babc7c8df2295e0c2c3e9da37cac32388f80db4b7f00049202232c10ce94b48122d4988f178111d2dbe9fca73e8e8dafdaedf51a1
6
+ metadata.gz: b5f694c17d7390b5d3f587c5c1536a9cfb262142281d6846e1f6d263ec4cf784e15e9c3a81615698e6de3eb3aad81845519ad877ea3e3082cd63a017fa07853b
7
+ data.tar.gz: ff346a2ed95706dcd1034346b0519fef831d2a664ccd7b5f2ed85e1960202e0fa4498aaff89db2e506e8c97c661662a9f5a68b16f97924519522e6646e9fdc7f
@@ -326,7 +326,7 @@ module Fastlane
326
326
  end
327
327
 
328
328
  def self.createiOSFileEndString()
329
- return "\n\nprivate class LocalizationHelper { }\n\nextension Localization {\n\tprivate static func localized(identifier key: String, _ args: CVarArg...) -> String {\n\t\tlet format = NSLocalizedString(key, tableName: nil, bundle: Bundle(for: LocalizationHelper.self), comment: \"\")\n\n\t\tguard !args.isEmpty else { return format }\n\n\t\treturn String(format: format, locale: Locale.current, arguments: args)\n\t}\n}"
329
+ return "\n\nprivate class LocalizationHelper { }\n\nextension Localization {\n\tprivate static func localized(identifier key: String, _ args: CVarArg...) -> String {\n\t\tlet format = NSLocalizedString(key, tableName: nil, bundle: Bundle(for: LocalizationHelper.self), comment: \"\")\n\n\t\tguard !args.isEmpty else { return format }\n\n\t\treturn String.localizedStringWithFormat(format, args)\n\t}\n}"
330
330
  end
331
331
 
332
332
  def self.createiOSFunction(constantName, identifier, arguments, comment)
@@ -354,6 +354,11 @@ module Fastlane
354
354
  end
355
355
 
356
356
  def self.findArgumentsInText(text)
357
+
358
+ if text.include?("one|")
359
+ text = text.dup.split("|")[1]
360
+ end
361
+
357
362
  result = Array.new
358
363
  filtered = self.mapInvalidPlaceholder(text)
359
364
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.94"
3
+ VERSION = "0.1.95"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-google_sheet_localize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.94
4
+ version: 0.1.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn