Locale
public extension Locale
-
Returns the Locale with the identifier
en_US_POSIX.Declaration
Swift
static var enUsPosix: Locale { get } -
Returns the
currentlocale, except in test mode whereenUsPosixis returned instead to prevent flaky tests.Relies on
ProcessInfo.isRunningInTestModeto determine if the code is running in test mode or not.Declaration
Swift
static var testableCurrent: Locale { get }
View on GitHub