fastlane-plugin-google_sheet_localize 0.1.67 → 0.1.68
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: de7659bbc6c9c67d02f5363f37d822c4d86941f61f4087424599422779239948
|
4
|
+
data.tar.gz: 7d942a723331b3f81f265e111ce085b9847844849cbf40dc2083f8a64aa45e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9dd64e8eafdb313f1cae3f9c31a71904242e7ce1bc68fe2393b9bc98aa04410f3d1aff213de4bb1b6b446cafb1782c7cdb9ad5188a4a368f12596653ed7d751
|
7
|
+
data.tar.gz: 8351fa37ccb0ac40995bfc891b25ef600d0f777e0b8b3ecb87aab7aaf77a92c1f49b75660efb0d9f33851603e03645789af943907bbb61b28b708705d6db961e
|
data/README.md
CHANGED
@@ -21,15 +21,16 @@ https://medium.com/@osanda.deshan/getting-google-oauth-access-token-using-google
|
|
21
21
|
|
22
22
|
## Example
|
23
23
|
|
24
|
-
```
|
24
|
+
```ruby
|
25
25
|
lane :localize do
|
26
26
|
google_sheet_localize(service_account_path: "./fastlane/google_drive_credentials.json",
|
27
27
|
sheet_id: "sheet id",
|
28
28
|
platform: "ios",
|
29
|
-
tabs: ["3TV"],
|
29
|
+
tabs: ["3TV"], #array of tab titles in google sheet
|
30
30
|
localization_path: "./Kit/TVKit",
|
31
|
-
language_titles: ["de", "en"],
|
32
|
-
default_language: "de"
|
31
|
+
language_titles: ["de", "en"], #language titles in google sheet
|
32
|
+
default_language: "de", #default language for google sheet
|
33
|
+
base_language: "en") #ios: Base.lproj android: values
|
33
34
|
end
|
34
35
|
```
|
35
36
|
|
@@ -104,7 +104,7 @@ module Fastlane
|
|
104
104
|
}
|
105
105
|
|
106
106
|
File.open(swiftFilepath, "w") do |f|
|
107
|
-
f.write("import Foundation\n\n// swiftlint:disable file_length\npublic struct Localization {\n")
|
107
|
+
f.write("import Foundation\n\n// swiftlint:disable file_length\n// swiftlint:disable type_body_length\npublic struct Localization {\n")
|
108
108
|
filteredItems.each { |item|
|
109
109
|
|
110
110
|
identifier = item['identifierIos']
|
@@ -121,6 +121,14 @@ module Fastlane
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
+
if constantName == "continue"
|
125
|
+
constantName = "`continue`"
|
126
|
+
end
|
127
|
+
|
128
|
+
if constantName == "switch"
|
129
|
+
constantName = "`switch`"
|
130
|
+
end
|
131
|
+
|
124
132
|
text = self.mapInvalidPlaceholder(item['text'])
|
125
133
|
|
126
134
|
arguments = self.findArgumentsInText(text)
|