mobile-ios/CovidSafe/String+Localization.swift

18 lines
343 B
Swift
Raw Normal View History

2020-06-19 07:43:33 +00:00
//
// 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)
}
}