SystemLocale

public struct SystemLocale : LocaleLaunchArgument, LaunchArgumentWithSingleValue

Launch option to replace locale selected in the system.

Allows to replace users locale.

Argument:

AppleLocale

Example:

SystemLocale(localeIdentifier: "pl")
SystemLocale(language: .Polish, country: .Poland)

Generated strings:

-AppleLocale "pl"
-AppleLocale "pl_PL"
  • Initalizes self with custom string representation of the locale.

    Declaration

    Swift

    public init(localeIdentifier: String)

    Parameters

    localeIdentifier

    String representation of the locale.

  • Initalizes self with predefined language and country.

    Declaration

    Swift

    public init(language: SystemLanguage, country: SystemCountry)

    Parameters

    language

    Predefined language value.

    country

    Predefined country value.

  • String representation of the launch value.

    Declaration

    Swift

    public var value: String { get }