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 implementationThe 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 implementationA localized display string for this value
Default Implementation
A localized display string for this value
Declaration
Swift
var localized: String { get }
-
tableName
Default implementationThe name of the
.strings
file containing the localized strings for this enum.nil
means use the defaultLocalizable.strings
fileDefault Implementation
The name of the
.strings
file containing the localized strings for this enum. Returnsnil
to use the defaultLocalizable.strings
fileDeclaration
Swift
static var tableName: String? { get }