NSLocalizedString seems a little cumbersome for me to use since I don't include a comment with my strings. So I have a wrapper function, like so:
public func localeString(_ string: String) -> String {
return NSLocalizedString(string, comment: "")
}
However, this script then claims that all my localized strings are unused when clearer they are. Is there any way we can provide it with a string to look for, in addition to the pre-existing NSLocalizedString?
NSLocalizedStringseems a little cumbersome for me to use since I don't include a comment with my strings. So I have a wrapper function, like so:However, this script then claims that all my localized strings are unused when clearer they are. Is there any way we can provide it with a string to look for, in addition to the pre-existing
NSLocalizedString?