Package google.type
Stay organized with collections
Save and categorize content based on your preferences.
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.
[null,null,["Last updated 2025-03-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eLocalizedText\u003c/code\u003e is a message type used to represent text in a specific language.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields for the localized text itself (\u003ccode\u003etext\u003c/code\u003e) and its corresponding BCP-47 language code (\u003ccode\u003elanguage_code\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003eLocalizedText\u003c/code\u003e to display text tailored to a user's language preference.\u003c/p\u003e\n"]]],["The `LocalizedText` message represents text variations in different languages. It contains two fields: `text`, a string representing the localized text, and `language_code`, a string indicating the text's BCP-47 language code (e.g., \"en-US\"). The `text` field's language corresponds to the `language_code` provided. This structure is used to store text and its language tag.\n"],null,["# Package google.type\n\nIndex\n-----\n\n- [LocalizedText](/payments/reseller/subscription/reference/rpc/google.type#google.type.LocalizedText) (message)\n\nLocalizedText\n-------------\n\nLocalized variant of a text in a particular language.\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `text` | `string` Localized string in the language corresponding to [language_code](/payments/reseller/subscription/reference/rpc/google.type#google.type.LocalizedText.FIELDS.string.google.type.LocalizedText.language_code) below. |\n| `language_code` | `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. |"]]