LocalizedString
Fields |
kind (deprecated) |
string
Identifies what kind of resource this is. Value: the fixed string "walletobjects#localizedString" .
|
translatedValues[] |
object (TranslatedString )
Contains the translations for the string.
|
defaultValue |
object (TranslatedString )
Contains the string to be displayed if no appropriate translation is available.
|
TranslatedString
JSON representation |
{
"kind": string,
"language": string,
"value": string
} |
Fields |
kind (deprecated) |
string
Identifies what kind of resource this is. Value: the fixed string "walletobjects#translatedString" .
|
language |
string
Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
|
value |
string
The UTF-8 encoded translated string.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[[["`LocalizedString` objects store translations for a string, including a default value if no translation is available."],["The `translatedValues` field within `LocalizedString` holds an array of `TranslatedString` objects, each representing a translation in a specific language."],["`TranslatedString` objects contain the language code (`language`) and the actual translated string (`value`)."],["If no suitable translation is found in `translatedValues`, the `defaultValue` field's `TranslatedString` object is used for display."]]],["The document outlines JSON structures for representing localized strings. A main structure contains a deprecated `kind`, an array of `translatedValues` (objects), and a `defaultValue` (object). Each `translatedValue` and `defaultValue` includes another structure with a deprecated `kind`, a `language` tag (BCP 47 format), and a `value` representing the UTF-8 encoded translated string. These structures enable managing multiple language translations for a given string.\n"]]