1. Interfaces

LocaleData

Version:
TypeInterface
Import path@sitecore-cloudsdk/search/browser

The country and language the webpage is being viewed in.

Signature

export interface LocaleData {
  country: string;
  language: string;
}

Properties

NameTypeDescriptionValue
countrystringRequired.The locale the site visitor interacts with your brand in. See also Sitecore Search locales and SitecoreAI site locales.Format: ISO 3166 Alpha 2."DE""US" "FR"
languagestringRequired.The language the site visitor interacts with your brand in.For example, if the site visitor selects the Japanese language in your app, the language is "JA".Format: ISO 639.If unset, this property will not be part of the payload."DE""EN""FR"
If you have suggestions for improving this article, let us know!