FlowsLocale

public class FlowsLocale : NSObject

FlowsLocale is a singleton class that allows application developers to override the language used by the SAPFioriFlows framework independently of the system language.

By setting a custom Locale, all user-facing texts such as alerts, onboarding messages, and error prompts provided by the Flows framework will be displayed in the specified language.

Example usage:

 // Force the framework to use German localization
 FlowsLocale.shared.locale = Locale(identifier: "de")

*

  • Shared instance

    Declaration

    Swift

    public static let shared: FlowsLocale
  • The currently applied locale. Setting this updates the localization bundle.

    Declaration

    Swift

    public var locale: Locale? { get set }