yattee/Extensions/String+Localizable.swift

8 lines
190 B
Swift
Raw Normal View History

2022-09-04 15:28:30 +00:00
import Foundation
extension String {
func localized(_ comment: String = "") -> Self {
NSLocalizedString(self, tableName: "Localizable", bundle: .main, comment: comment)
}
}