Skip to content

Commit d71392b

Browse files
committed
Update playground
1 parent 09dc831 commit d71392b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftGen.playground/Pages/Strings-Demo.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal enum L10n {
6565

6666
extension L10n {
6767
private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
68-
let format = NSLocalizedString(key, tableName: table, bundle: BundleToken.bundle, comment: "")
68+
let format = BundleToken.bundle.localizedString(forKey: key, value: nil, table: table)
6969
return String(format: format, locale: Locale.current, arguments: args)
7070
}
7171
}

0 commit comments

Comments
 (0)