Changed the condition for moe visibility
This commit is contained in:
parent
5d4e461933
commit
1d7fc76340
@ -85,13 +85,12 @@ class Definition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func getBaseProperty(lang: String, translation: String, isStatic: Bool, comment: String?) -> String {
|
private func getBaseProperty(lang: String, translation: String, isStatic: Bool, comment: String?) -> String {
|
||||||
|
|
||||||
"""
|
"""
|
||||||
/// Translation in \(lang) :
|
/// Translation in \(lang) :
|
||||||
/// \(translation)
|
/// \(translation)
|
||||||
///
|
///
|
||||||
/// Comment :
|
/// Comment :
|
||||||
/// \((comment ?? "").isEmpty ? "No comment" : comment!)
|
/// \(comment?.isEmpty == false ? comment! : "No comment")
|
||||||
\(isStatic ? "static ": "")var \(name): String {
|
\(isStatic ? "static ": "")var \(name): String {
|
||||||
NSLocalizedString("\(name)", tableName: kStringsFileName, bundle: Bundle.main, value: "\(translation)", comment: "\(comment ?? "")")
|
NSLocalizedString("\(name)", tableName: kStringsFileName, bundle: Bundle.main, value: "\(translation)", comment: "\(comment ?? "")")
|
||||||
}
|
}
|
||||||
@ -107,7 +106,7 @@ class Definition {
|
|||||||
/// \(translation)
|
/// \(translation)
|
||||||
///
|
///
|
||||||
/// Comment :
|
/// Comment :
|
||||||
/// \((comment ?? "").isEmpty ? "No comment" : comment!)
|
/// \(comment?.isEmpty == false ? comment! : "No comment")
|
||||||
\(isStatic ? "static ": "")func \(name)(\(inputParameters.joined(separator: ", "))) -> String {
|
\(isStatic ? "static ": "")func \(name)(\(inputParameters.joined(separator: ", "))) -> String {
|
||||||
String(format: \(isStatic ? "Self" : "self").\(name), \(translationArguments.joined(separator: ", ")))
|
String(format: \(isStatic ? "Self" : "self").\(name), \(translationArguments.joined(separator: ", ")))
|
||||||
}
|
}
|
||||||
@ -186,7 +185,7 @@ class Definition {
|
|||||||
/// \(translation)
|
/// \(translation)
|
||||||
///
|
///
|
||||||
/// Comment :
|
/// Comment :
|
||||||
/// \((comment ?? "").isEmpty ? "No comment" : comment!)
|
/// \(comment?.isEmpty == false ? comment! : "No comment")
|
||||||
|
|
||||||
var \(name): String {
|
var \(name): String {
|
||||||
"\(translation)"
|
"\(translation)"
|
||||||
@ -206,7 +205,7 @@ class Definition {
|
|||||||
/// \(translation)
|
/// \(translation)
|
||||||
///
|
///
|
||||||
/// Comment :
|
/// Comment :
|
||||||
/// \((comment ?? "").isEmpty ? "No comment" : comment!)
|
/// \(comment?.isEmpty == false ? comment! : "No comment")
|
||||||
static var \(name): String {
|
static var \(name): String {
|
||||||
"\(translation)"
|
"\(translation)"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user