SystemLanguages

public struct SystemLanguages : LanguageLaunchArgument, LaunchArgumentWithMultipleValues

Launch option to replace languages selected in the system.

Allows to replace order of preferred languages which will be used by the application do display localized content.

Argument:

AppleLanguages

Example:

SystemLanguages([.English, .Polish])
// or
[.English, .Polish] as SystemLanguages

Generated strings:

-AppleLanguages ("en", "pl")
  • System languages to set on device. First element is the most preffered one.

    Declaration

    Swift

    public let values: [SystemLanguage]
  • Initalizes self with array of languages.

    Declaration

    Swift

    public init(_ values: [SystemLanguage])

    Parameters

    values

    Array to use for initialization.