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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-13。
[null,null,["最后更新时间 (UTC):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"]]