Localize also multiline strings

This commit is contained in:
Danny Moesch 2019-01-20 11:24:57 +01:00 committed by Mingshen Sun
parent 804a0f06bf
commit 2fdd3fd6ec
5 changed files with 130 additions and 122 deletions

View 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()
}
}