Is there an Swift equivalent of NSLocalizedString(...)
?
In Objective-C
, we usually use:
NSString *string = NSLocalizedString(@"key", @"comment");
How can I achieve the same in Swift? I found a function:
func NSLocalizedString(
key: String,
tableName: String? = default,
bundle: NSBundle = default,
value: String = default,
#comment: String) -> String
However, it is very long and not convenient at all.