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 編碼的翻譯字串。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-13 (世界標準時間)。
[null,null,["上次更新時間:2024-11-13 (世界標準時間)。"],[[["`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"]]