Localize also multiline strings
This commit is contained in:
parent
804a0f06bf
commit
2fdd3fd6ec
5 changed files with 130 additions and 122 deletions
18
pass/UserInterface/UILocalizedLabel.swift
Normal file
18
pass/UserInterface/UILocalizedLabel.swift
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
UILocalizedLabel.swift
|
||||
pass
|
||||
|
||||
Created by Danny Moesch on 20.01.19.
|
||||
Copyright © 2019 Bob Sun. All rights reserved.
|
||||
*/
|
||||
|
||||
import UIKit
|
||||
import passKit
|
||||
|
||||
class UILocalizedLabel: UILabel {
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
text = text?.localize()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue