update placeholder for alias input field

This commit is contained in:
True Zhuanjia
2024-07-26 19:53:36 +08:00
parent 039bf549a9
commit f5342caca6
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -145,25 +145,25 @@
}
}
},
"Alias" : {
"Alias (optional)" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名"
"value" : "别名 (允许留空)"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名"
"value" : "别名 (允许留空)"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "别名"
"value" : "别名 (允许留空)"
}
}
}
@@ -175,7 +175,7 @@ import UIKit
@objc private func addButtonTapped() {
let alert = UIAlertController(title: SwiftLocalizationHelper.localizedString(forKey: "New Command"), message: SwiftLocalizationHelper.localizedString(forKey: "Enter a new command and alias"), preferredStyle: .alert)
alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey:"Command") }
alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey: "Alias") }
alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey: "Alias (optional)") }
alert.textFields?[0].keyboardType = .asciiCapable
alert.textFields?[0].autocorrectionType = .no
alert.textFields?[0].spellCheckingType = .no