LocalizedString
Champs |
kind (deprecated) |
string
Identifie le type de ressource. Valeur : chaîne fixe "walletobjects#localizedString" .
|
translatedValues[] |
object (TranslatedString )
Contient les traductions d'une chaîne.
|
defaultValue |
object (TranslatedString )
Contient la chaîne à afficher si aucune traduction appropriée n'est disponible.
|
TranslatedString
Représentation JSON |
{
"kind": string,
"language": string,
"value": string
} |
Champs |
kind (deprecated) |
string
Identifie le type de ressource. Valeur : chaîne fixe "walletobjects#translatedString" .
|
language |
string
Représente l'étiquette de langue BCP 47. Exemples de valeurs : "en-US", "en-GB", "de" ou "de-AT".
|
value |
string
Chaîne traduite encodée en UTF-8.
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/13 (UTC).
[null,null,["Dernière mise à jour le 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"]]