LocalizedText

struct LocalizedText
extension LocalizedText : Equatable, Hashable, Sendable

Represents a localized string and its corresponding locale.

This struct maps to Google_Type_LocalizedText, defined here: google3/google/type/localized_text.proto.

  • The actual localized text.

    Declaration

    Swift

    let text: String
  • The BCP-47 locale (e.g. “en-US”).

    Declaration

    Swift

    let locale: Locale
  • Undocumented

    Declaration

    Swift

    init(text: String, locale: Locale)