LocalizedText
Stay organized with collections
Save and categorize content based on your preferences.
Localized variant of a text in a particular language.
JSON representation |
{
"text": string,
"languageCode": string
} |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-26 UTC."],[[["\u003cp\u003eLocalizedText objects represent localized text with a string value (\u003ccode\u003etext\u003c/code\u003e) and its corresponding language code (\u003ccode\u003elanguageCode\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etext\u003c/code\u003e field contains the localized string, while the \u003ccode\u003elanguageCode\u003c/code\u003e field specifies the language using the BCP-47 standard (e.g., "en-US").\u003c/p\u003e\n"]]],["The provided JSON schema represents localized text. It contains two fields: `text` and `languageCode`. The `text` field is a string representing the localized text in a specific language. The `languageCode` field, also a string, uses a BCP-47 language code (e.g., \"en-US\") to specify the language of the `text`. This allows for representing a string in multiple languages and clearly identifying each language variant.\n"],null,["# LocalizedText\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nLocalized variant of a text in a particular language.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"text\": string, \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `text` | `string` Localized string in the language corresponding to [languageCode](/payments/reseller/subscription/reference/rest/v1/LocalizedText#FIELDS.language_code) below. |\n| `languageCode` | `string` The text's BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see \u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. |"]]