mobile-ios/CovidSafe/String+Localization.swift
2020-06-19 17:43:33 +10:00

17 lines
343 B
Swift

//
// String+Localization.swift
// CovidSafe
//
// Copyright © 2020 Australian Government. All rights reserved.
//
import Foundation
extension String {
func localizedString( comment: String = "") -> String {
if self == "" {
return ""
}
return NSLocalizedString(self, comment: comment)
}
}