We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3c799 commit 56bc8e9Copy full SHA for 56bc8e9
Foundation/NSString.swift
@@ -21,8 +21,13 @@ extension unichar : ExpressibleByUnicodeScalarLiteral {
21
}
22
23
// Placeholder for a future implementation
24
-public func NSLocalizedString(_ key: String, comment: String?) -> String {
25
- return key
+public
+func NSLocalizedString(_ key: String,
26
+ tableName: String? = nil,
27
+ bundle: Bundle = Bundle.main,
28
+ value: String = "",
29
+ comment: String?) -> String {
30
+ return bundle.localizedString(forKey: key, value:value, table:tableName)
31
32
33
#if os(OSX) || os(iOS)
0 commit comments