AI-generated Key Takeaways
-
LocalizedText provides localized strings in a specific language, represented by the
textfield. -
It uses the BCP-47 standard for language codes in the
languageCodefield, 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 |
Localized string in the language corresponding to |
languageCode |
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. |