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 कोड में बदली गई स्ट्रिंग का अनुवाद किया गया है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]