Localizable

public protocol Localizable : RawRepresentable where Self.RawValue == String

Any string resource that can be localized (primarily for use with string-based enums)

  • bundle Default implementation

    The bundle containing the localized strings for this enum

    Default Implementation

    The bundle containing the localized strings

    Declaration

    Swift

    static var bundle: Bundle { get }
  • localized Default implementation

    A localized display string for this value

    Default Implementation

    A localized display string for this value

    Declaration

    Swift

    var localized: String { get }
  • tableName Default implementation

    The name of the .strings file containing the localized strings for this enum. nil means use the default Localizable.strings file

    Default Implementation

    The name of the .strings file containing the localized strings for this enum. Returns nil to use the default Localizable.strings file

    Declaration

    Swift

    static var tableName: String? { get }