languageCode property

String? languageCode
getter/setter pair

Language of the title/description and other string attributes.

Use language tags defined by BCP 47. For product prediction, this field is ignored and the model automatically detects the text language. The Product can include text in different languages, but duplicating Products to provide text in multiple languages can result in degraded model performance. For product search this field is in use. It defaults to "en-US" if unset.

Implementation

core.String? languageCode;