Use folder references for all groups and sort files/folders

This commit is contained in:
Danny Moesch 2019-01-20 12:34:40 +01:00 committed by Mingshen Sun
parent 38b44cedf8
commit d698f2e3c3
12 changed files with 154 additions and 154 deletions

View file

@ -1,25 +0,0 @@
/*
String.swift
passKit
Created by Danny Moesch on 12.01.19.
Copyright © 2019 Bob Sun. All rights reserved.
*/
extension String {
public func localize() -> String {
return NSLocalizedString(self, value: "#\(self)#", comment: "")
}
public func localize(_ firstValue: CVarArg) -> String {
return String(format: localize(), firstValue)
}
public func localize(_ firstValue: CVarArg, _ secondValue: CVarArg) -> String {
return String(format: localize(), firstValue, secondValue)
}
public func localize(_ error: Error) -> String {
return localize(error.localizedDescription)
}
}