---
title: "Locale"
description: "Locale"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/javascript/reference/locale"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-06"
---

# Locale

## Locale

Contentstack has a sophisticated multilingual capability. It allows you to create and publish entries in any language. This feature allows you to set up multilingual websites and cater to a wide variety of audience by serving content in their local language(s). Read more about [Locales](/docs/headless-cms/about-languages).

## update

The Update Locale call lets you update the name and description of an existing Locale.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).locale('locale_code').fetch()
.then((locale) => {
  locale.fallback_locale = 'en-at'
  return locale.update()
})
.then((locale) => console.log(locale))
```

The request body

## delete

The Delete Locale call is used to delete an existing Locale permanently from your Stack.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).locale('locale_code').delete()
.then((response) => console.log(response.notice))
```

## fetch

The fetch Locale call fetches Locale details.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).locale('locale_code').fetch()
.then((locale) => console.log(locale))
```

UID of the content type of which you want to retrieve the details

## create

The Create a content type call creates a new content type in a particular stack of your Contentstack account.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).locale().create({ locale: { code: 'en-at' } )
.then((locale) => console.log(locale))
```

The request body

## query

The Query on Locale will allow to fetch details of all or specific Locale

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack(api_key).locale().query({ query: { code: 'locale-code' } }).find()
.then((locales) => console.log(locales))Note: Always include the locale filter inside the query object when filtering entries.
Correct usage: query({ query: { locale: 'en-gb' } })
Returns only entries that match the specified locale.Incorrect usage: query({ locale: 'en-gb' })
The locale is treated as a query option, not a filter. All entries are returned.
```

Total count of content types available in your stack.

Specifies the maximum number of items to return.

Specifies the number of items to skip from the returned results. Useful for pagination.

## Locale | JavaScript Management SDK | Contentstack

Locale lets you create and publish entries in any language to build multilingual websites for diverse audiences in the JavaScript Management SDK.