LocalizedText

public struct LocalizedText : Hashable

Used to represent text localized to specific language.

  • Text value.

    Declaration

    Swift

    public var text: String
  • Locale of text, in most cases contains only language code. If locale is not supported by the platform, nil is returned.

    Declaration

    Swift

    public var locale: Locale?
  • Creates a new instance.

    Declaration

    Swift

    public init(text: String, locale: Locale? = nil)