AI-generated Key Takeaways
-
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, thevalue
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 ( |
Fields | |
---|---|
value |
Text value in an unknown locale. Required if and only if |
localized |
Per-locale text values. Optional. |
LocalizedString
Instance of a string in one locale.
JSON representation |
---|
{ "locale": string, "value": string } |
Fields | |
---|---|
locale |
IETF BCP 47 language code, such as "en", "mas", "zh-Hant", "de-CH-1901". See http://www.w3.org/International/articles/language-tags/. |
value |
Message in the locale above (UTF-8). |