LocalizedString
Pola |
kind (deprecated) |
string
Określa rodzaj danego zasobu. Wartość: ustalony ciąg znaków "walletobjects#localizedString" .
|
translatedValues[] |
object (TranslatedString )
Zawiera tłumaczenia ciągu znaków.
|
defaultValue |
object (TranslatedString )
Zawiera ciąg znaków do wyświetlenia, gdy nie jest dostępne odpowiednie tłumaczenie.
|
TranslatedString
Zapis JSON |
{
"kind": string,
"language": string,
"value": string
} |
Pola |
kind (deprecated) |
string
Określa rodzaj danego zasobu. Wartość: ustalony ciąg znaków "walletobjects#translatedString" .
|
language |
string
Reprezentuje tag języka zgodny ze standardem BCP 47. Przykładowe wartości to „en-US”, „en-GB”, „de” i „de-AT”.
|
value |
string
Przetłumaczony ciąg znaków zakodowany w UTF-8.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-13 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]