Skip to content

Commit

Permalink
NSLocalizedString stub
Browse files Browse the repository at this point in the history
  • Loading branch information
johnno1962 committed Oct 13, 2017
1 parent e5569b3 commit ea0fabd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Foundation/NSString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ extension unichar : ExpressibleByUnicodeScalarLiteral {
}
}

// Placeholder for a future implementation
public
func NSLocalizedString(_ key: String,
tableName: String? = nil,
bundle: Bundle = Bundle.main,
value: String = "",
comment: String) -> String {
return bundle.localizedString(forKey: key, value: value, table: tableName)
}

#if os(OSX) || os(iOS)
internal let kCFStringEncodingMacRoman = CFStringBuiltInEncodings.macRoman.rawValue
internal let kCFStringEncodingWindowsLatin1 = CFStringBuiltInEncodings.windowsLatin1.rawValue
Expand Down

0 comments on commit ea0fabd

Please sign in to comment.