LocalizedString
Campos |
kind (deprecated) |
string
Identifica o tipo de recurso. Valor: a string fixa "walletobjects#localizedString" .
|
translatedValues[] |
object (TranslatedString )
Contém as traduções da string.
|
defaultValue |
object (TranslatedString )
Contém a string a ser exibida caso não haja tradução apropriada disponível.
|
TranslatedString
Representação JSON |
{
"kind": string,
"language": string,
"value": string
} |
Campos |
kind (deprecated) |
string
Identifica o tipo de recurso. Valor: a string fixa "walletobjects#translatedString" .
|
language |
string
Representa a tag de idioma BCP 47. Exemplos de valores: "en-US", "en-GB", "de" ou "de-AT".
|
value |
string
A string traduzida codificada em UTF-8.
|
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-11-13 UTC.
[null,null,["Última atualização 2024-11-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"]]