    struct LocalizedText

    extension LocalizedText : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Decodable, Encodable, Equatable, Hashable, Sendable, SendableMetatype, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/StructDataRepresentable.html

Represents a localized string and its corresponding locale.

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


  ### [text](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV4textSSvp)


  ` The actual localized text.

  #### Declaration

  Swift

      let text: String

- `


  ### [locale](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV6locale10Foundation6LocaleVvp)


  ` The BCP-47 locale (e.g. "en-US").

  #### Declaration

  Swift

      let locale: Locale

- `


  ### [init(text:locale:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV4text6localeACSS_10Foundation6LocaleVtcfc)


  ` Undocumented

  #### Declaration

  Swift

      init(text: String, locale: Locale)

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV7decoderAcA12TraitDecoderV_tKcfc)


  ` Initializes `LocalizedText` with the trait decoder.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The trait decoder to decode the localized text. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV6encode4withyAA12TraitEncoderC_tKF)


  ` Encodes `LocalizedText` to the trait encoder.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws

- `


  ### [init(from:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalizedText#/s:13GoogleHomeSDK13LocalizedTextV4fromACs7Decoder_p_tKcfc)


  ` Creates a new instance by decoding from the given decoder.

  This initializer throws an error if reading from the decoder fails, or
  if the data read is corrupted or otherwise invalid.

  #### Declaration

  Swift

      init(from decoder: any Decoder) throws