TXPreferredLocaleProvider

public final class TXPreferredLocaleProvider : NSObject
extension TXPreferredLocaleProvider : TXCurrentLocaleProvider

Class that returns the language code of the current user’s locale and 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