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"]]