Skip to content

Commit 31a2d12

Browse files
authored
Merge pull request #18 from nodes-ios/feature/make_properties_public
Public vars for all
2 parents 11c6d7b + ed6d371 commit 31a2d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nstack-translations-generator/Classes/TranslationsGenerator/Generator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct Generator {
9999

100100
for key in output.mainKeys {
101101
modelString += indent.string()
102-
modelString += "var \(key.escaped) = \(output.isFlat ? "\"\"" : "\(key.uppercasedFirstLetter)()")"
102+
modelString += "public var \(key.escaped) = \(output.isFlat ? "\"\"" : "\(key.uppercasedFirstLetter)()")"
103103
if key == "defaultSection" { modelString += " //<-default" }
104104
modelString += "\n"
105105
}
@@ -136,7 +136,7 @@ struct Generator {
136136
// Add the translation keys for the model
137137
for subKey in value.keys {
138138
subString += indent.string()
139-
subString += "var \(subKey.escaped) = \"\"\n"
139+
subString += "public var \(subKey.escaped) = \"\"\n"
140140
}
141141

142142
indent = indent.previousLevel()

0 commit comments

Comments
 (0)