Enable SwiftLint rule 'nslocalizedstring_key' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 00:45:31 +02:00 committed by Mingshen Sun
parent 77216abe14
commit 92123448a4
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
extension String {
public func localize() -> String {
// swiftlint:disable:next nslocalizedstring_key
NSLocalizedString(self, value: "#\(self)#", comment: "")
}