Text

  • Text fields may contain marked-up content and can include a value in an unknown locale or localized values.

  • LocalizedString objects provide per-locale text values using IETF BCP 47 language codes and the corresponding UTF-8 message.

  • If localizedValue is empty, the value field is required, indicating the text in an unknown locale, which could vary based on the partner or service provider.

A possibly-localized text payload. Some Text fields may contain marked-up content.

JSON representation
{
  "value": string,
  "localizedValue": [
    {
      object (LocalizedString)
    }
  ]
}
Fields
value

string

Text value in an unknown locale. Required if and only if localizedValue is empty. The locale for this value may depend on the partner or service provider -- it should not be assumed to be any specific language.

localizedValue[]

object (LocalizedString)

Per-locale text values. Optional.

LocalizedString

Instance of a string in one locale.

JSON representation
{
  "locale": string,
  "value": string
}
Fields
locale

string

IETF BCP 47 language code, such as "en", "mas", "zh-Hant", "de-CH-1901". See http://www.w3.org/International/articles/language-tags/.

value

string

Message in the locale above (UTF-8).