Locale

public extension Locale
  • Returns the Locale with the identifier en_US_POSIX.

    Declaration

    Swift

    static var enUsPosix: Locale { get }
  • Returns the current locale, except in test mode where enUsPosix is returned instead to prevent flaky tests.

    Relies on ProcessInfo.isRunningInTestMode to determine if the code is running in test mode or not.

    Declaration

    Swift

    static var testableCurrent: Locale { get }