TXPreferredLocaleProvider

public final class TXPreferredLocaleProvider : NSObject
extension TXPreferredLocaleProvider : TXCurrentLocaleProvider

Class that returns the active language code that can be used for localization, based on the current user’s language preferences and the locales that the application supports. The class falls back to “en” if the language code cannot be found.

  • The current user’s locale.

    Declaration

    Swift

    public func currentLocale() -> String

    Return Value

    The current user’s locale