Skip to content

Commit

Permalink
Support localised strings for kr, vi, en
Browse files Browse the repository at this point in the history
  • Loading branch information
manhlx3006 committed Jan 15, 2020
1 parent 2d1eb62 commit e0fa244
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ class KNTransferConsentViewController: KNBaseViewController {
self.headerContainerView.applyGradient(with: UIColor.Kyber.headerColors)
self.backButton.isHidden = true

self.descriptionTextLabel.attributedText = self.createAttributedStringTransferConsentTextKr()
self.descriptionTextLabel.attributedText = {
if Locale.current.kyberSupportedLang == "vi" {
return self.createAttributedStringTransferConsentTextVi()
}
if Locale.current.kyberSupportedLang == "kr" {
return self.createAttributedStringTransferConsentTextKr()
}
return self.createAttributedStringTransferConsentText()
}()
self.scrollView.delegate = self

let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.didTapDescriptionLabel(_:)))
Expand Down

0 comments on commit e0fa244

Please sign in to comment.