---
title: "LocaleData"
slug: "cloud-sdk-search-localedata-1539465"
abstract: "The LocaleData interface represents the language and country the webpage is being viewed in."
---
# LocaleData

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/server` |

The country and language the webpage is being viewed in.

## Signature

```typescript
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" |
