LocalizedString
ช่อง |
kind (deprecated) |
string
ระบุประเภทของทรัพยากร ค่า: สตริงคงที่ "walletobjects#localizedString"
|
translatedValues[] |
object (TranslatedString )
มีคำแปลของสตริง
|
defaultValue |
object (TranslatedString )
มีสตริงที่จะแสดงหากไม่มีคำแปลที่เหมาะสม
|
TranslatedString
การแสดง JSON |
{
"kind": string,
"language": string,
"value": string
} |
ช่อง |
kind (deprecated) |
string
ระบุว่านี่คือทรัพยากรประเภทใด ค่า: สตริงคงที่ "walletobjects#translatedString"
|
language |
string
แสดงแท็กภาษา BCP 47 ตัวอย่างค่า ได้แก่ "en-US", "en-GB", "de" หรือ "de-AT"
|
value |
string
สตริงที่แปลแล้วที่เข้ารหัสแบบ UTF-8
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-13 UTC
[null,null,["อัปเดตล่าสุด 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"]]