|
|
@ -11,12 +11,12 @@ import UIKit |
|
|
|
class MessageComposeViewController: UIViewController { |
|
|
|
|
|
|
|
struct StringConstants { |
|
|
|
let headerText = "We are always there to help you." |
|
|
|
let headerText = "support_description_text".localized() |
|
|
|
let submitText = "submit_text".localized() |
|
|
|
let cancelText = "cancel_text".localized() |
|
|
|
let subjectAmendmentText = "Request For Amendment" |
|
|
|
let subjectCancelText = "Request For Cancellation" |
|
|
|
let requestMessagePlaceHolderText = "Your request here" |
|
|
|
let subjectAmendmentText = "request_for_amendment_text".localized() |
|
|
|
let subjectCancelText = "request_for_cancellation_text".localized() |
|
|
|
let requestMessagePlaceHolderText = "your_request_text".localized() |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: IBOutlets |
|
|
@ -85,7 +85,7 @@ class MessageComposeViewController: UIViewController { |
|
|
|
case .cancel: |
|
|
|
self.textFieldSubject.text = "request_for_cancellation_text".localized() |
|
|
|
case .edit: |
|
|
|
self.textFieldSubject.text = "Request for amendment".localized() |
|
|
|
self.textFieldSubject.text = "request_for_amendment_text".localized() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -114,7 +114,7 @@ class MessageComposeViewController: UIViewController { |
|
|
|
// MARK: MessageComposeViewInterface |
|
|
|
extension MessageComposeViewController: MessageComposeViewInterface { |
|
|
|
func show(model: SuccessMessage) { |
|
|
|
self.alert(message: model.message, title: "Success") { |
|
|
|
self.alert(message: model.message, title: "success_text".localized()) { |
|
|
|
self.presenter?.dismiss() |
|
|
|
} |
|
|
|
} |
|
|
@ -134,7 +134,7 @@ extension MessageComposeViewController: UITextViewDelegate { |
|
|
|
|
|
|
|
func textViewDidEndEditing(_ textView: UITextView) { |
|
|
|
if textViewMessage.text.isEmpty { |
|
|
|
textViewMessage.text = "Your request here" |
|
|
|
textViewMessage.text = "your_request_text".localized() |
|
|
|
textViewMessage.textColor = UIColor.lightGray |
|
|
|
} |
|
|
|
} |
|
|
|