TXCurrentLocaleProvider

@objc
public protocol TXCurrentLocaleProvider

Protocol that developers can use to create custom classes that return the current locale of the app. If no CurrentLocaleProvider is provided in TXLocaleState constructor, the TXPreferredLocaleProvider is used.

  • Return the current locale to be used by the SDK

    Declaration

    Swift

    func currentLocale() -> String