📜  本地化字符串格式 swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.449000             🧑  作者: Mango

代码示例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")