1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30
yattee/Extensions/String+Localizable.swift

8 lines
190 B
Swift
Raw Normal View History

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