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

# Locale

## Locale

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

## find

The find method retrieves the list of all languages (along with the language codes) available for a stack.

```
import contentstack_management 
client = contentstack_management.Client(authtoken='authtoken')
response = client.stack("api_key").locale().find().json()
```

## fetch

The fetch method retrieves information about a specific language available on the stack.

```
import contentstack_management 
client = contentstack_management.Client(authtoken='authtoken')
response = client.stack('api_key').locale('locale_code').fetch().json()
```

Code of the specific language

## create

The create method lets you add a new language to your stack. You can either add a supported language or a custom language of your choice.

```
data = {
"locale":{
          "name":"Arabic - Bahrain",
          "code":"ar-bh",
          "fallback_locale":"en-us"
       }
     }
import contentstack_management 
client = contentstack_management.Client(authtoken='your_authtoken')
response = client.stack('api_key').locale().create(data).json()
```

Data required to create a new locale

## update

The update method lets you update the details (such as display name) and the fallback language of an existing language of your stack.

```
data ={
  "locale":{
    "name":"Updated Locale Name",
    "fallback_locale":"zh-cn"
  }
}


import contentstack_management 
client = contentstack_management.Client(authtoken='your_authtoken')
response = client.stack('api_key').locale("locale_code").update(data).json()
```

The updated data of the locale

Code of the specific language

## Delete

The delete method removes an existing language from your stack.

```
import contentstack_management 
client = contentstack_management.Client(authtoken='authtoken')
response = client.stack('api_key').locale(locale_code).delete().json()
```

Code of the specific language

## Set_fallback

The Set\_fallback method allows you to assign a [fallback language](/docs/headless-cms/about-fallback-languages) for an entry in a particular language.

```
data = {
"locale":{
          "name":"Arabic - Bahrain",
          "code":"ar-bh",
          "fallback_locale":"en-us"
       }
}
import contentstack_management 
client = contentstack_management.Client(authtoken='your_authtoken')
response = client.stack('api_key').locale().set_fallback(data).json()
```

Data required to assign the fallback language

## Update_fallback

The Update\_fallback method allows you to update the fallback language for an existing language of your stack.

```
data = {
  "locale": {
    "name": "German",
    "code": "de",
    "fallback_locale": "en-us"
      }
}
import contentstack_management 
client = contentstack_management.Client(authtoken='your_authtoken')
response = client.stack('api_key').locale("locale_code").update_fallback(data).json()
```

Data required to assign the fallback language

Code of the specific language

## Locale | Python Management SDK | Contentstack

Locale lets you create and publish multilingual entries to serve audiences in their local languages, in the Python Management SDK.