1. @sitecore-cloudsdk/search/server

LocaleData

Version:

Type

Interface

Import path

@sitecore-cloudsdk/search/server

The country and language the webpage is being viewed in.

Signature

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

Properties

Name

Type

Description

Value

country

string

Required.

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"

language

string

Required.

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!