I\'m trying to figure out how to use NSLocalizedString with variables.
For example, if I want to output \"by Peter and Larry\", in my Localizable.strings
Localizable.strings
yes, you should have "account.by_user" = "by %@ and %@"; and take this:
"account.by_user" = "by %@ and %@";
let localizedString = NSLocalizedString("account.by_user", comment: "any comment") let wantedString = String(format: localizedString, "Peter","Larry")