Package google.type

  • LocalizedText is a message type used to represent text in a specific language.

  • It includes fields for the localized text itself (text) and its corresponding BCP-47 language code (language_code).

  • Developers can use LocalizedText to display text tailored to a user's language preference.

Index

LocalizedText

Localized variant of a text in a particular language.

Fields
text

string

Localized string in the language corresponding to language_code below.

language_code

string

The text's BCP-47 language code, such as "en-US" or "sr-Latn".

For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.