LocalizedText

  • LocalizedText provides localized strings in a specific language, represented by the text field.

  • It uses the BCP-47 standard for language codes in the languageCode field, enabling global language support.

  • The JSON representation combines the localized text and its language code for clear identification.

Localized variant of a text in a particular language.

JSON representation
{
  "text": string,
  "languageCode": string
}
Fields
text

string

Localized string in the language corresponding to languageCode below.

languageCode

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.