yattee/Extensions/String+Localizable.swift
2022-10-27 18:03:57 +02:00

8 lines
190 B
Swift

import Foundation
extension String {
func localized(_ comment: String = "") -> Self {
NSLocalizedString(self, tableName: "Localizable", bundle: .main, comment: comment)
}
}