AI-generated Key Takeaways
-
LocalizedStringobjects store translations for a string, including a default value if no translation is available. -
The
translatedValuesfield withinLocalizedStringholds an array ofTranslatedStringobjects, each representing a translation in a specific language. -
TranslatedStringobjects contain the language code (language) and the actual translated string (value). -
If no suitable translation is found in
translatedValues, thedefaultValuefield'sTranslatedStringobject is used for display.
| JSON representation |
|---|
{ "kind": string, "translatedValues": [ { object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
translatedValues[] |
Contains the translations for the string. |
defaultValue |
Contains the string to be displayed if no appropriate translation is available. |
TranslatedString
| JSON representation |
|---|
{ "kind": string, "language": string, "value": string } |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
language |
Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT". |
value |
The UTF-8 encoded translated string. |