Check out example codes for "localized string format swift". It will help you in understanding the concepts better.

Code Example 1

// you should have "account.by_user" = "by %@ and %@"; and take this:

let localizedString = NSLocalizedString("account.by_user", comment: "any comment")
let wantedString = String(format: localizedString, "Peter","Larry")

Learn ReactJs, React Native from akashmittal.com