Localization
Defines the explicit type of localization for resources.
Resource.swift:39Resource-Localization.md- SwiftPM
- 5.3+
enum Localization
Enumeration Cases
case base
A constant that represents base internationalization.
case `default`
A constant that represents default localization.
Hashing
Operator Functions
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Creating a Value
Accessing the Raw Value
rawValue
RawValue
See also
static func process(String, localization: Resource.Localization?
) -> Resource Applies a platform-specific rules to the resource at the given path.
static func copy(String
) -> Resource Applies the copy rule to a resource at the given path.
Other members in extension
Type members
static func embedInCode(String
) -> Resource Applies the embed rule to a resource at the given path.
Citizens in PackageDescription
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.